When using expectNoEvents(), the method does consider that the flow's terminal event might have already been consumed.
flowOf("foo").test {
skipItems(1)
awaitComplete()
expectNoEvents()
}
The above code produces this error:
TurbineAssertionError: Expected no events but found Complete
Additionally, it is currently possible to call awaitComplete() multiple times without any restriction. Should this be allowed?
flowOf("foo").test {
skipItems(1)
repeat(5) {
awaitComplete()
}
}