X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FWebOfTrustPingerTest.kt;h=97434495fbaf43e65ec1a12173d00527d6fcb461;hp=894b9ef0a6d6bcf5f62faf3df28056f7d632fd1d;hb=b385551aaa0750cb0041858037cd83dcbf9006b6;hpb=4d52c2de635c2225d206f4666ca070d7b5e70c37 diff --git a/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustPingerTest.kt b/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustPingerTest.kt index 894b9ef..9743449 100644 --- a/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustPingerTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustPingerTest.kt @@ -33,9 +33,9 @@ class WebOfTrustPingerTest { private val eventBus = EventBus() private val webOfTrustReachable = AtomicBoolean() - private val webOfTrustReacher: () -> Unit = { webOfTrustReachable.get().onFalse { throw PluginException() } } + private val webOfTrustReacher = Runnable { webOfTrustReachable.get().onFalse { throw PluginException() } } private val rescheduled = AtomicBoolean() - private val reschedule: () -> Unit = { rescheduled.set(true) } + private val reschedule = Runnable { rescheduled.set(true) } private val pinger = WebOfTrustPinger(eventBus, webOfTrustReacher, reschedule) @Test