keith-turner commented on code in PR #5926:
URL: https://github.com/apache/accumulo/pull/5926#discussion_r2376565282
##########
test/src/main/java/org/apache/accumulo/test/functional/ConstraintIT.java:
##########
@@ -322,6 +324,11 @@ private void test2(AccumuloClient client, String table,
boolean doFlush) throws
"Unexpected " + cvs.constrainClass + " " +
cvs.numberOfViolatingMutations);
}
}
+
+ assertTrue(mre.getMessage().contains(
+ "constraint violation codes :
{org.apache.accumulo.test.constraints.NumericValueConstraint=[1],
org.apache.accumulo.test.constraints.AlphaNumKeyConstraint=[1]}")
+ || mre.getMessage().contains(
+ "constraint violation codes :
{org.apache.accumulo.test.constraints.AlphaNumKeyConstraint=[1],
org.apache.accumulo.test.constraints.NumericValueConstraint=[1]}"));
Review Comment:
Having different codes is a better test. Was easy to make that change w/
the existing test code, updated in c09ae60
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]