🎨 Use Runnable instead of a Kotlin arrow type
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / freenet / wot / WebOfTrustPingerTest.kt
index 894b9ef..9743449 100644 (file)
@@ -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