fix(bsr): log failure reason for encode benchmark tests and stop the tests

This commit is contained in:
Elim Tsiagbey committed 2024-01-11 09:58:32 -05:00
1 parent 17330e13df
commit e1ae3b0689
1 file changed
+2 -2
+2 -2
View File
@@ -51,7 +51,7 @@ func BenchmarkEncodeParallel(b *testing.B) {
for pb.Next() {
buf, err := fstest.NewTempBuffer()
if err != nil {
panic("could not create buffer")
b.Fatal("could not create buffer")
}
enc, _ := NewChunkEncoder(ctx, buf, NoCompression, NoEncryption)
for _, c := range chunks {
@@ -81,7 +81,7 @@ func BenchmarkEncodeSequential(b *testing.B) {
for i := 0; i < b.N; i++ {
buf, err := fstest.NewTempBuffer()
if err != nil {
panic("could not create buffer")
b.Fatal("could not create buffer")
}
enc, _ := NewChunkEncoder(ctx, buf, NoCompression, NoEncryption)
for _, c := range chunks {