do not call fillInStackTrace in exception constructor in happy path

This commit is contained in:
a10zn8
2022-12-14 15:06:03 +04:00
parent 98e20d08be
commit f59b878dc6
3 changed files with 6 additions and 4 deletions

View File

@@ -168,7 +168,7 @@ class NativeCallSpec extends Specification {
nativeCall.quorumReaderFactory = Mock(QuorumReaderFactory) {
1 * create(_, _, _) >> Mock(Reader) {
1 * read(new JsonRpcRequest("eth_test", [], 10)) >> Mono.error(
new JsonRpcException(JsonRpcResponse.Id.from(12), new JsonRpcError(-32123, "Foo Bar", "Foo Bar Baz"))
new JsonRpcException(JsonRpcResponse.Id.from(12), new JsonRpcError(-32123, "Foo Bar", "Foo Bar Baz"), true)
)
}
}