Skip to content

Commit

Permalink
fix: Wait before asserting panic cleanup (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
creativecreature authored May 26, 2024
1 parent bf36589 commit 2f9f2af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inflight_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ func TestInflightKeysAreRemovedForBatchRequestsThatPanic(t *testing.T) {
t.Errorf("expected an error; got nil")
}

time.Sleep(50 * time.Millisecond)

if c.NumKeysInflight() > 0 {
t.Errorf("expected no inflight keys; got %d", c.NumKeysInflight())
}
Expand Down

0 comments on commit 2f9f2af

Please sign in to comment.