-
-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
Using a combination of eventually and assertMatch is currently rather inconvenient.
assertMatch returns Unit while eventually expects Boolean.
So the following piece of code does not compile
eventually {
assertMatch(y) {
case Success(x: String) if x == "bla" =>
}
}while this does but only with a manual true as a workaround.
eventually {
assertMatch(y) {
case Success(x: String) if x == "bla" =>
}
true
}Maybe an eventually that only cares about match errors or a new eventuallyMatch could be added?
carueda
Metadata
Metadata
Assignees
Labels
No labels