mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +01:00
Remove redundant use of IO executor.
This commit is contained in:
@@ -172,17 +172,13 @@ public class ContactExchangeIntegrationTest extends BrambleTestCase {
|
|||||||
alice.getEventBus().addListener(e -> {
|
alice.getEventBus().addListener(e -> {
|
||||||
if (e instanceof ContactAddedEvent) aliceFinished.countDown();
|
if (e instanceof ContactAddedEvent) aliceFinished.countDown();
|
||||||
});
|
});
|
||||||
alice.getIoExecutor().execute(() ->
|
alice.getConnectionManager().manageOutgoingConnection(
|
||||||
alice.getConnectionManager().manageOutgoingConnection(
|
bobFromAlice.getId(), DUPLEX_TRANSPORT_ID, aliceConnection);
|
||||||
bobFromAlice.getId(), DUPLEX_TRANSPORT_ID,
|
|
||||||
aliceConnection));
|
|
||||||
bob.getEventBus().addListener(e -> {
|
bob.getEventBus().addListener(e -> {
|
||||||
if (e instanceof ContactAddedEvent) bobFinished.countDown();
|
if (e instanceof ContactAddedEvent) bobFinished.countDown();
|
||||||
});
|
});
|
||||||
bob.getIoExecutor().execute(() ->
|
bob.getConnectionManager().manageIncomingConnection(
|
||||||
bob.getConnectionManager().manageIncomingConnection(
|
aliceFromBob.getId(), DUPLEX_TRANSPORT_ID, bobConnection);
|
||||||
aliceFromBob.getId(), DUPLEX_TRANSPORT_ID,
|
|
||||||
bobConnection));
|
|
||||||
assertTrue(aliceFinished.await(TIMEOUT, MILLISECONDS));
|
assertTrue(aliceFinished.await(TIMEOUT, MILLISECONDS));
|
||||||
assertTrue(bobFinished.await(TIMEOUT, MILLISECONDS));
|
assertTrue(bobFinished.await(TIMEOUT, MILLISECONDS));
|
||||||
assertContacts(false, true);
|
assertContacts(false, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user