diff --git a/rust-bindings/src/lib.rs b/rust-bindings/src/lib.rs index 3556c15a..d788a683 100644 --- a/rust-bindings/src/lib.rs +++ b/rust-bindings/src/lib.rs @@ -198,7 +198,7 @@ fn schema_display_aux(schema: &[u8], schema_version: Option) -> Result() - .Where(e => e.Result == Result.VersionedSchemaErrorParseError); + .Where(e => + e.Result == Result.VersionedSchemaErrorParseError && + e.Message.Equals("Parse error", StringComparison.Ordinal)); } [Fact] @@ -101,7 +103,9 @@ public async Task GivenBadReceiveParam_WhenDisplayReceiveParam_ThenThrowExceptio // Assert action.Should().Throw() - .Where(e => e.Result == Result.NoError); + .Where(e => + e.Result == Result.JsonError && + e.Message.StartsWith("Failed to deserialize AccountAddress due to: Could not parse AccountAddress")); } [Fact]