test: add synchronization to testDisconnectingTargetPeer

This commit is contained in:
Olaoluwa Osuntokun 2017-07-05 17:48:44 -07:00
parent dc0ab06d91
commit 21cb3837c4
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
1 changed files with 2 additions and 0 deletions

View File

@ -397,6 +397,8 @@ func testDisconnectingTargetPeer(net *networkHarness, t *harnessTest) {
" while one pending channel is existing: err %v", err)
}
time.Sleep(time.Millisecond * 300)
// Check existing connection.
assertNumConnections(ctxb, t, net.Alice, net.Bob, 1)