Skip to content

Commit

Permalink
fix: flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Nov 21, 2024
1 parent d0edbe4 commit 469cdec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/storer/internal/reserve/reserve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,9 @@ func TestEvictSOC(t *testing.T) {
if err != nil {
t.Fatal(err)
}
checkChunk(t, ts, chunks[9], false) // chunk should still persist, eg refCnt > 0
if has, _ := ts.ChunkStore().Has(context.Background(), chunks[0].Address()); !has {
t.Fatal("same address chunk should still persist, eg refCnt > 0")
}

evicted, err := r.EvictBatchBin(context.Background(), batch.ID, 10, swarm.MaxBins)
if err != nil {
Expand Down

0 comments on commit 469cdec

Please sign in to comment.