Skip to content

Commit 7455e96

Browse files
committed
Fix GlobTests flaky test with asterisks in string
1 parent 5e43ea5 commit 7455e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/core/src/test/java/org/elasticsearch/core/GlobTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ interface CharPredicate {
177177
}
178178

179179
private String randomAsciiString(int length) {
180-
return randomAsciiString(length, ch -> ch >= ' ' && ch <= '~');
180+
return randomAsciiString(length, ch -> ch >= ' ' && ch <= '~' && ch != '*');
181181
}
182182

183183
private String randomAsciiString(int length, CharPredicate validCharacters) {

0 commit comments

Comments
 (0)