PeerGroupTest: Fix a race.

This commit is contained in:
Mike Hearn
2013-08-08 13:56:29 +02:00
parent 1e227e521a
commit 6680846949

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()));