From 3d6972fd737d4eab369e2e2bbd98b503a746aecb Mon Sep 17 00:00:00 2001 From: akwizgran Date: Mon, 28 Mar 2022 14:59:43 +0100 Subject: [PATCH] Fix race condition in IntroductionIntegrationTest. --- .../briar/introduction/IntroductionIntegrationTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/briar-core/src/test/java/org/briarproject/briar/introduction/IntroductionIntegrationTest.java b/briar-core/src/test/java/org/briarproject/briar/introduction/IntroductionIntegrationTest.java index 952576c98..29131fe8b 100644 --- a/briar-core/src/test/java/org/briarproject/briar/introduction/IntroductionIntegrationTest.java +++ b/briar-core/src/test/java/org/briarproject/briar/introduction/IntroductionIntegrationTest.java @@ -986,6 +986,10 @@ public class IntroductionIntegrationTest @Test public void testIntroduceesRemovedCleanup() throws Exception { addListeners(true, true); + // The second introducee shouldn't respond to the introduction + // otherwise there would be a race between the response to the REQUEST + // and the delivery of the ABORT + listener2.answerRequests = false; // make introduction introductionManager0