mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
PeerTest, TransactionBroadcastTest: clear the mock clock after some tests that use it
This commit is contained in:
parent
d1e2e71bb5
commit
6eed19d449
2 changed files with 3 additions and 0 deletions
|
@ -498,6 +498,7 @@ public class PeerTest extends TestWithNetworkConnections {
|
|||
inbound(writeTarget, b3);
|
||||
pingAndWait(writeTarget);
|
||||
closePeer(peer);
|
||||
TimeUtils.resetMocking();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -529,6 +530,7 @@ public class PeerTest extends TestWithNetworkConnections {
|
|||
Duration elapsed2 = future2.get();
|
||||
assertEquals(elapsed2.toMillis(), peer.getLastPingTime());
|
||||
assertEquals(7250, peer.getPingTime());
|
||||
TimeUtils.resetMocking();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -80,6 +80,7 @@ public class TransactionBroadcastTest extends TestWithPeerGroup {
|
|||
@After
|
||||
public void tearDown() {
|
||||
super.tearDown();
|
||||
TimeUtils.resetMocking();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Reference in a new issue