Skip to content

Commit

Permalink
fix: compare bytestrings in test
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Roberts <ryan@blockchaintp.com>
  • Loading branch information
ryan-s-roberts committed Oct 7, 2021
1 parent 7ea26cf commit c151a94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void testRoundTripDamlState() {
System.out.println(dsValue.toByteString().toStringUtf8());
assertTrue("retVal.length != dsValue.length",
retVal.bytes().toStringUtf8().length() == dsValue.toByteString().toStringUtf8().length());
assertTrue(dsValue.toByteString().equals(retVal));
assertTrue(dsValue.toByteString().equals(retVal.bytes()));

byte[] zeroBytes = new byte[128];
ByteString zeroBs = ByteString.copyFrom(zeroBytes);
Expand Down

0 comments on commit c151a94

Please sign in to comment.