Elffuss BraidHub

kikocis/java-driver public

Tighten log validation in QueryLoggerTest.

Was checking on numeric values that could appear in timestamps and port
numbers.  Tighten this to prevent false failures.
Changeset15307c2126765927cbfccfcad23f24a8c861094879e389933af7cbb5f9e9231e
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-03-07 15:25 -06:00
CommitterAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-03-07 15:25 -06:00
Parents13e45c991f37

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/QueryLoggerTest.java +2 −4
@@ -841,7 +841,7 @@
841841 .contains("Query completed normally")
842842 .contains(ipOfNode(1))
843843 .contains("123456")
844- .doesNotContain("42")
844+ .doesNotContain("123456, 42")
845845 .contains(FURTHER_PARAMS_OMITTED);
846846 }
847847
@@ -899,9 +899,7 @@
899899 .contains(query1)
900900 .contains(query2)
901901 .contains("'foo'")
902- .doesNotContain("42")
903- .doesNotContain("12345")
904- .doesNotContain("43")
902+ .doesNotContain("42, 12345, 43")
905903 .contains(FURTHER_PARAMS_OMITTED);
906904 }
907905