From 36b96b9479538ca460770da684426f068874e69d Mon Sep 17 00:00:00 2001 From: nomisRev Date: Wed, 1 Jul 2020 21:08:34 +0200 Subject: [PATCH] Increase timeout, and remove println --- .../src/test/kotlin/arrow/fx/coroutines/TimerTest.kt | 2 +- .../src/test/kotlin/arrow/fx/coroutines/stream/StreamTest.kt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arrow-fx-coroutines/src/test/kotlin/arrow/fx/coroutines/TimerTest.kt b/arrow-fx-coroutines/src/test/kotlin/arrow/fx/coroutines/TimerTest.kt index 63ea433bc..2ab46c474 100644 --- a/arrow-fx-coroutines/src/test/kotlin/arrow/fx/coroutines/TimerTest.kt +++ b/arrow-fx-coroutines/src/test/kotlin/arrow/fx/coroutines/TimerTest.kt @@ -163,7 +163,7 @@ class TimerTest : ArrowFxSpec(spec = { checkAll(Arb.int()) { i -> val promise = Promise() - timeOutOrNull(1.milliseconds) { + timeOutOrNull(50.milliseconds) { cancellable { CancelToken { promise.complete(i) } } diff --git a/arrow-fx-coroutines/src/test/kotlin/arrow/fx/coroutines/stream/StreamTest.kt b/arrow-fx-coroutines/src/test/kotlin/arrow/fx/coroutines/stream/StreamTest.kt index 5cad7251a..f11b58d6e 100644 --- a/arrow-fx-coroutines/src/test/kotlin/arrow/fx/coroutines/stream/StreamTest.kt +++ b/arrow-fx-coroutines/src/test/kotlin/arrow/fx/coroutines/stream/StreamTest.kt @@ -787,7 +787,6 @@ class StreamTest : StreamSpec(spec = { .compile() .toList() .let { result -> - println("$result") result shouldBe listOfNotNull(result.firstOrNull()) + result.drop(1).filter { it != 0 } } }