solution: propagate native call exception to downstream

This commit is contained in:
Igor Artamonov
2019-08-23 21:39:31 -04:00
parent c9d93f91d3
commit ac30b522e6
3 changed files with 6 additions and 2 deletions

View File

@@ -135,6 +135,7 @@ class NativeCallSpec extends Specification {
StepVerifier.create(resp)
.expectNext(BlockchainOuterClass.NativeCallReplyItem.newBuilder()
.setSucceed(false)
.setErrorMessage("Failed to call 5: test test")
.setId(5)
.build())
.expectComplete()
@@ -151,6 +152,7 @@ class NativeCallSpec extends Specification {
StepVerifier.create(resp)
.expectNext(BlockchainOuterClass.NativeCallReplyItem.newBuilder()
.setSucceed(false)
.setErrorMessage("test test")
.build())
.expectComplete()
.verify(Duration.ofSeconds(1))