From 682306b265d5551e4465ad36be6e1cb3b1909ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petrus=20Nguy=E1=BB=85n=20Th=C3=A1i=20H=E1=BB=8Dc?= Date: Tue, 5 Jul 2022 16:17:38 +0700 Subject: [PATCH] tests --- .../kotlin/com/hoc081098/flowext/SkipUntilTest.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/commonTest/kotlin/com/hoc081098/flowext/SkipUntilTest.kt b/src/commonTest/kotlin/com/hoc081098/flowext/SkipUntilTest.kt index c5148058..94602c25 100644 --- a/src/commonTest/kotlin/com/hoc081098/flowext/SkipUntilTest.kt +++ b/src/commonTest/kotlin/com/hoc081098/flowext/SkipUntilTest.kt @@ -58,6 +58,17 @@ class SkipUntilTest : BaseStepTest() { Event.Complete ) ) + + flowOf(1, 2, 3) + .onEach { delay(100) } + .dropUntil(timer(Unit, 150)) + .test( + listOf( + Event.Value(2), + Event.Value(3), + Event.Complete + ) + ) } @Test