mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-25 23:20:48 +01:00
PeerGroupTest: Fix a race.
This commit is contained in:
parent
19d4887253
commit
3ca2cd0345
1 changed files with 1 additions and 0 deletions
|
@ -247,6 +247,7 @@ public class PeerGroupTest extends TestWithPeerGroup {
|
||||||
});
|
});
|
||||||
// A straggler reports in.
|
// A straggler reports in.
|
||||||
inbound(p3, inv);
|
inbound(p3, inv);
|
||||||
|
Threading.waitForUserCode();
|
||||||
assertEquals(tx, event[1]);
|
assertEquals(tx, event[1]);
|
||||||
assertEquals(3, tx.getConfidence().numBroadcastPeers());
|
assertEquals(3, tx.getConfidence().numBroadcastPeers());
|
||||||
assertTrue(tx.getConfidence().wasBroadcastBy(peerOf(p3).getAddress()));
|
assertTrue(tx.getConfidence().wasBroadcastBy(peerOf(p3).getAddress()));
|
||||||
|
|
Loading…
Add table
Reference in a new issue