3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 02:35:52 +00:00

Fix another peerTimeoutTest failure mode.

This commit is contained in:
Amichai Rothman 2015-06-30 21:25:03 +03:00 committed by Andreas Schildbach
parent 213efd53ab
commit e148e9e052

View File

@ -501,8 +501,8 @@ public class PeerGroupTest extends TestWithPeerGroup {
}
}, Threading.SAME_THREAD);
// connect to peer but don't do handshake
long start = System.currentTimeMillis(); // before connection so we don't get elapsed < timeout
connectPeerWithoutVersionExchange(0);
long start = System.currentTimeMillis();
// wait for disconnect (plus a bit more, in case test server is overloaded)
try {
peerDisconnectedFuture.get(timeout + 200, TimeUnit.MILLISECONDS);