Skip to content

Commit

Permalink
node/test: add a sleep after closing the connection because it's not …
Browse files Browse the repository at this point in the history
…instant
  • Loading branch information
Ahmad Muzakkir committed Mar 5, 2019
1 parent c3dca79 commit d058e32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ func TestCallbacks(t *testing.T) {

peer.Disconnect()

time.Sleep(10 * time.Millisecond)

// check that the expected callbacks were called on the dialer
compareCB(callbacks[src], map[string]int{
"OnPeerDisconnected": 1,
Expand Down

0 comments on commit d058e32

Please sign in to comment.