Skip to content

Commit

Permalink
Merge pull request #792 from romrell4/revert-776-master
Browse files Browse the repository at this point in the history
Revert "Added logging when matcher fails with an assertion error"
  • Loading branch information
Raibaz committed May 3, 2022
2 parents 9d19f15 + 413403f commit 9aa36ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dsl/common/src/main/kotlin/io/mockk/Matchers.kt
Expand Up @@ -59,7 +59,11 @@ data class FunctionMatcher<in T : Any>(
return if(arg == null) {
false
} else {
matchingFunc(arg)
try {
matchingFunc(arg)
} catch (a: AssertionError) {
false
}
}
}

Expand Down

0 comments on commit 9aa36ac

Please sign in to comment.