Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
fix: flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc committed Mar 6, 2020
1 parent 44ae8f1 commit cc1224e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/session/sessionwantsender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
}

// Wait for processing to complete
time.Sleep(5 * time.Millisecond)
time.Sleep(10 * time.Millisecond)

// Session should remove peer
if has := fpm.HasPeer(p); has {
Expand All @@ -670,7 +670,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
spm.Update(p, []cid.Cid{}, cids[:1], []cid.Cid{})

// Wait for processing to complete
time.Sleep(5 * time.Millisecond)
time.Sleep(10 * time.Millisecond)

// Peer should be available
if has := fpm.HasPeer(p); !has {
Expand All @@ -686,7 +686,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
}

// Wait for processing to complete
time.Sleep(5 * time.Millisecond)
time.Sleep(10 * time.Millisecond)

// Peer should be available
if has := fpm.HasPeer(p); !has {
Expand All @@ -700,7 +700,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
}

// Wait for processing to complete
time.Sleep(5 * time.Millisecond)
time.Sleep(10 * time.Millisecond)

// Session should remove peer
if has := fpm.HasPeer(p); has {
Expand Down

0 comments on commit cc1224e

Please sign in to comment.