cjstehno / ersatz

🤖 A simulated HTTP server for testing client code with configurable responses.
https://cjstehno.github.io/ersatz
Apache License 2.0
47 stars 5 forks source link

Verify error is not very useful #161

Closed cjstehno closed 2 years ago

cjstehno commented 2 years ago

When the verify() call fails, especially due to mismatched called() value, the error message is not very helpful.

cjstehno commented 2 years ago

Actually no exception should be thrown here - the mismatch should be logged as an ERROR for inspection and the return value should be false.