mirror of
https://github.com/datarhei/core.git
synced 2025-10-20 14:45:27 +08:00
Fix filenames in benchmark
This commit is contained in:
@@ -243,9 +243,9 @@ func BenchmarkCleanup(b *testing.B) {
|
|||||||
path = fmt.Sprintf("/%d/%s_1.m3u8", j, ids[j])
|
path = fmt.Sprintf("/%d/%s_1.m3u8", j, ids[j])
|
||||||
memfs.WriteFile(path, []byte("foobar"))
|
memfs.WriteFile(path, []byte("foobar"))
|
||||||
for k := 0; k < 20; k++ {
|
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"))
|
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"))
|
memfs.WriteFile(path, []byte("foobar"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -322,9 +322,9 @@ func BenchmarkPurge(b *testing.B) {
|
|||||||
path = fmt.Sprintf("/%d/%s_1.m3u8", j, ids[j])
|
path = fmt.Sprintf("/%d/%s_1.m3u8", j, ids[j])
|
||||||
memfs.WriteFile(path, []byte("foobar"))
|
memfs.WriteFile(path, []byte("foobar"))
|
||||||
for k := 0; k < 20; k++ {
|
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"))
|
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"))
|
memfs.WriteFile(path, []byte("foobar"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user