The dual of eventually.
You might want to confirm that a predicate holds for a period of time. For example, you may want to confirm that a producer continues to produce new elements for a period of time, or that a http connection stays open for a period of time.
continually(5.seconds) {
conn.isOpen().shouldBeTrue()
}
The dual of eventually.
You might want to confirm that a predicate holds for a period of time. For example, you may want to confirm that a producer continues to produce new elements for a period of time, or that a http connection stays open for a period of time.
continually(5.seconds) { conn.isOpen().shouldBeTrue() }