Skip to content

Commit 627433f

Browse files
committed
test: join closing thread
Join the closing thread in the tearDown function in order to make sure the thread is fully stopped before we return. This is needed because otherwise we end up with the following error: java.net.BindException: Address already in use Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
1 parent cf479f7 commit 627433f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎client/src/test/java/org/ovirt/vdsm/jsonrpc/client/reactors/ReactorTestCase.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ public void setUp() throws Exception {
4343
}
4444

4545
@After
46-
public void tearDown() {
46+
public void tearDown() throws InterruptedException {
4747
this.reactorForListener.close();
4848
this.reactorForClient.close();
49+
this.reactorForListener.join();
50+
this.reactorForClient.join();
4951
}
5052

5153
@Test

0 commit comments

Comments
 (0)