diff --git a/domains/pente/src/test/java/io/kaleido/paladin/pente/domain/CSDBondTest.java b/domains/pente/src/test/java/io/kaleido/paladin/pente/domain/CSDBondTest.java index 096c8d17d..4d2937a67 100644 --- a/domains/pente/src/test/java/io/kaleido/paladin/pente/domain/CSDBondTest.java +++ b/domains/pente/src/test/java/io/kaleido/paladin/pente/domain/CSDBondTest.java @@ -122,9 +122,15 @@ void testCSDBond() throws Exception { List notoSchemas = testbed.getRpcClient().request("pstate_listSchemas", "noto"); assertEquals(2, notoSchemas.size()); - var notoSchema = mapper.convertValue(notoSchemas.getLast(), StateSchema.class); - assertEquals("type=NotoCoin(bytes32 salt,string owner,uint256 amount),labels=[owner,amount]", - notoSchema.signature()); + StateSchema notoSchema = null; + for (var i = 0; i < 2; i++) { + var schema = mapper.convertValue(notoSchemas.get(i), StateSchema.class); + if (schema.signature().equals("type=NotoCoin(bytes32 salt,string owner,uint256 amount),labels=[owner,amount]")) { + notoSchema = schema; + } else { + assertEquals("type=TransactionData(bytes32 salt,bytes data),labels=[]", schema.signature()); + } + } GroupTupleJSON issuerGroup = new GroupTupleJSON( JsonHex.randomBytes32(), new String[]{bondIssuer});