Skip to content

Commit

Permalink
Removed try catch around assertion errors so that they bubble up
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Romrell committed Jan 13, 2022
1 parent 99a3819 commit ced3ba7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dsl/common/src/main/kotlin/io/mockk/Matchers.kt
Expand Up @@ -59,11 +59,7 @@ data class FunctionMatcher<in T : Any>(
return if(arg == null) {
false
} else {
try {
matchingFunc(arg)
} catch (a: AssertionError) {
false
}
matchingFunc(arg)
}
}

Expand Down

0 comments on commit ced3ba7

Please sign in to comment.