Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Jan 29, 2021
1 parent 4e58e9d commit 8de6506
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/meta/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@ func TestTruncateAndDelete(t *testing.T) {

time.Sleep(time.Millisecond * 100)
keys = listAll(fmt.Sprintf("c%d_*", inode))
// the last chunk will be found and deleted
if len(keys) != 1 {
t.Fatalf("number of chunks: %d != 1, %+v", len(keys), keys)
// the last chunk could be found and deleted
if len(keys) > 1 {
t.Fatalf("number of chunks: %d > 1, %+v", len(keys), keys)
}
}

Expand Down

0 comments on commit 8de6506

Please sign in to comment.