Skip to content

Commit a9bda03

Browse files
authored
Update ChannelEventBusJvmTest: use Dispatchers.IO
1 parent 9c77405 commit a9bda03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

channel-event-bus/src/jvmTest/kotlin/com/hoc081098/channeleventbus/ChannelEventBusJvmTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ChannelEventBusJvmTest {
2323
fun flatMapLatest_Works(): Unit = runBlocking(Dispatchers.IO) {
2424
val bus = ChannelEventBus(ChannelEventBusLogger.noop())
2525
val flow = interval(initialDelay = Duration.ZERO, period = 11.milliseconds)
26-
.flowOn(Executors.newScheduledThreadPool(2).asCoroutineDispatcher())
26+
.flowOn(Dispatchers.IO)
2727
.take(10)
2828
.flatMapLatest { bus.receiveAsFlow(TestEventInt) }
2929
.take(50)

0 commit comments

Comments
 (0)