From 32c1de626995acdcb1320fa56881c1d82a4fd7d7 Mon Sep 17 00:00:00 2001 From: Robinson Date: Mon, 4 Apr 2022 23:22:39 +0200 Subject: [PATCH] WaitForThreads will ALSO always stop the endpoints --- test/dorkboxTest/network/BaseTest.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/dorkboxTest/network/BaseTest.kt b/test/dorkboxTest/network/BaseTest.kt index 59ebcf09..e6153ddb 100644 --- a/test/dorkboxTest/network/BaseTest.kt +++ b/test/dorkboxTest/network/BaseTest.kt @@ -229,7 +229,7 @@ abstract class BaseTest { endPointConnections.clear() } /** - * Wait for network client/server threads to shutdown for the specified time. + * Wait for network client/server threads to shutdown for the specified time. 0 will wait forever * * it should close as close to naturally as possible, otherwise there are problems * @@ -246,6 +246,9 @@ abstract class BaseTest { } catch (e: InterruptedException) { e.printStackTrace() } + + // always stop the endpoints + stopEndPoints() } @Before