diff --git a/networking/src/test/kotlin/ch/dissem/bitmessage/networking/NetworkHandlerTest.kt b/networking/src/test/kotlin/ch/dissem/bitmessage/networking/NetworkHandlerTest.kt index 4eaface..990b31d 100644 --- a/networking/src/test/kotlin/ch/dissem/bitmessage/networking/NetworkHandlerTest.kt +++ b/networking/src/test/kotlin/ch/dissem/bitmessage/networking/NetworkHandlerTest.kt @@ -233,7 +233,7 @@ class NetworkHandlerTest { private val peerAddress = NetworkAddress.Builder().ipv4(127, 0, 0, 1).port(6001).build() private fun shutdown(ctx: BitmessageContext) { - if (!ctx.isRunning) return + if (!ctx.isRunning()) return ctx.shutdown() do { @@ -242,7 +242,7 @@ class NetworkHandlerTest { } catch (ignore: InterruptedException) { } - } while (ctx.isRunning) + } while (ctx.isRunning()) } private fun shutdown(networkHandler: NetworkHandler) {