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:
parent
213efd53ab
commit
e148e9e052
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user