Skip to content

Commit

Permalink
Ensure the test is not flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
afoucret committed Oct 25, 2024
1 parent 5772ed3 commit 245dd33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void testHasWildcard() {
assertTrue(hasWildcard(parserRuleContext(randomTextNodeListWithNode(wildcardNode()))));

// All children are literals
assertFalse(hasWildcard(parserRuleContext(randomList(1, randomInt(100), ParserUtilsTests::randomLiteralNode))));
assertFalse(hasWildcard(parserRuleContext(randomList(1, randomIntBetween(1, 100), ParserUtilsTests::randomLiteralNode))));

// Quoted string
assertFalse(hasWildcard(parserRuleContext(randomQuotedStringNode())));
Expand Down

0 comments on commit 245dd33

Please sign in to comment.