test: add synchronization to testDisconnectingTargetPeer

This commit is contained in:
Olaoluwa Osuntokun committed 2017-07-06 14:18:04 -07:00
1 parent dc0ab06d91
commit 21cb3837c4
1 file changed
+2
+2
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)