mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2025-12-01 18:45:48 +00:00
partial fix
This commit is contained in:
@@ -67,8 +67,8 @@ class StringParseTest {
|
||||
val flow = kronScheduler.asFlow()
|
||||
|
||||
runTest {
|
||||
val ranges = rangesEnds.map { it.first .. it.second }.flatten().toMutableList()
|
||||
val expectedCollects = rangesEnds.sumOf { it.second - it.first + 1 }
|
||||
val ranges = rangesEnds.map { it.first .. it.second }.flatten().distinct().toMutableList()
|
||||
val expectedCollects = ranges.size
|
||||
var collected = 0
|
||||
|
||||
flow.takeWhile { ranges.isNotEmpty() }.collect {
|
||||
|
||||
Reference in New Issue
Block a user