diff --git a/pkg/storer/internal/reserve/reserve_test.go b/pkg/storer/internal/reserve/reserve_test.go index 411d4cf9d71..8554d77ff2a 100644 --- a/pkg/storer/internal/reserve/reserve_test.go +++ b/pkg/storer/internal/reserve/reserve_test.go @@ -331,7 +331,7 @@ func TestSameChunkAddress(t *testing.T) { } err = r.Put(ctx, ch4) - if err != nil { + if !errors.Is(err, storage.ErrOverwriteNewerChunk) { t.Fatal(err) } })