3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 14:54:15 +00:00

PeerGroupTest: Fix a race.

This commit is contained in:
Mike Hearn 2013-08-08 13:56:29 +02:00
parent 19d4887253
commit 3ca2cd0345

View File

@ -247,6 +247,7 @@ public class PeerGroupTest extends TestWithPeerGroup {
});
// A straggler reports in.
inbound(p3, inv);
Threading.waitForUserCode();
assertEquals(tx, event[1]);
assertEquals(3, tx.getConfidence().numBroadcastPeers());
assertTrue(tx.getConfidence().wasBroadcastBy(peerOf(p3).getAddress()));