From 30857b6f59043bbf366e7e4f6383e4bb6acda282 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Mon, 12 Jun 2023 11:56:44 +0200 Subject: [PATCH] Fix filenames in benchmark --- restream/fs/fs_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/restream/fs/fs_test.go b/restream/fs/fs_test.go index 24d11773..a4b7923a 100644 --- a/restream/fs/fs_test.go +++ b/restream/fs/fs_test.go @@ -243,9 +243,9 @@ func BenchmarkCleanup(b *testing.B) { path = fmt.Sprintf("/%d/%s_1.m3u8", j, ids[j]) memfs.WriteFile(path, []byte("foobar")) for k := 0; k < 20; k++ { - path = fmt.Sprintf("/%d/%s_0_%d.m3u8", j, ids[j], k) + path = fmt.Sprintf("/%d/%s_0_%d.ts", j, ids[j], k) memfs.WriteFile(path, []byte("foobar")) - path = fmt.Sprintf("/%d/%s_1_%d.m3u8", j, ids[j], k) + path = fmt.Sprintf("/%d/%s_1_%d.ts", j, ids[j], k) memfs.WriteFile(path, []byte("foobar")) } } @@ -322,9 +322,9 @@ func BenchmarkPurge(b *testing.B) { path = fmt.Sprintf("/%d/%s_1.m3u8", j, ids[j]) memfs.WriteFile(path, []byte("foobar")) for k := 0; k < 20; k++ { - path = fmt.Sprintf("/%d/%s_0_%d.m3u8", j, ids[j], k) + path = fmt.Sprintf("/%d/%s_0_%d.ts", j, ids[j], k) memfs.WriteFile(path, []byte("foobar")) - path = fmt.Sprintf("/%d/%s_1_%d.m3u8", j, ids[j], k) + path = fmt.Sprintf("/%d/%s_1_%d.ts", j, ids[j], k) memfs.WriteFile(path, []byte("foobar")) } }