mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 11:15:51 +00:00
Fix unit test broken by less aggressive backoff time.
This commit is contained in:
parent
150e9fb7df
commit
918ceb8f55
@ -658,7 +658,7 @@ public class PeerGroup extends AbstractExecutionThreadService implements Transac
|
||||
if (retryTime > nowMillis) {
|
||||
// Sleep until retry time
|
||||
final long millis = retryTime - nowMillis;
|
||||
log.info("Waiting {} msec before next connect attempt", millis, addr == null ? "" : " to " + addr);
|
||||
log.info("Waiting {} msec before next connect attempt {}", millis, addr == null ? "" : " to " + addr);
|
||||
Utils.sleep(millis);
|
||||
}
|
||||
}
|
||||
|
@ -500,9 +500,7 @@ public class PeerGroupTest extends TestWithPeerGroup {
|
||||
stopPeerServer(2);
|
||||
assertEquals(2002, disconnectedPeers.take().getAddress().getPort()); // peer died
|
||||
|
||||
// Peer 2 is tried twice before peer 1, since it has a lower backoff due to recent success
|
||||
Utils.passMockSleep();
|
||||
assertEquals(2002, disconnectedPeers.take().getAddress().getPort());
|
||||
// Peer 2 is tried before peer 1, since it has a lower backoff due to recent success
|
||||
Utils.passMockSleep();
|
||||
assertEquals(2002, disconnectedPeers.take().getAddress().getPort());
|
||||
Utils.passMockSleep();
|
||||
|
Loading…
x
Reference in New Issue
Block a user