diff options
author | Jason Tedor <jason@tedor.me> | 2017-04-04 11:04:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-04 11:04:18 -0400 |
commit | 3136ed1490e41b4c82b8ee05ff2d224e113ef1b8 (patch) | |
tree | 7cdbb7ae2c9421de67930ab386b0253713d048e5 /core/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionTests.java | |
parent | a01f77210acc50e818ae3e1e9e3c48cb2498fee7 (diff) |
Rename random ASCII helper methods
This commit renames the random ASCII helper methods in ESTestCase. This
is because this method ultimately uses the random ASCII methods from
randomized runner, but these methods actually only produce random
strings generated from [a-zA-Z].
Relates #23886
Diffstat (limited to 'core/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionTests.java')
-rw-r--r-- | core/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionTests.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionTests.java b/core/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionTests.java index 60722fb5f6..4b0e60a1d0 100644 --- a/core/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionTests.java +++ b/core/src/test/java/org/elasticsearch/search/suggest/completion/CompletionSuggestionTests.java @@ -35,7 +35,7 @@ public class CompletionSuggestionTests extends ESTestCase { public void testToReduce() throws Exception { List<Suggest.Suggestion<CompletionSuggestion.Entry>> shardSuggestions = new ArrayList<>(); int nShards = randomIntBetween(1, 10); - String name = randomAsciiOfLength(10); + String name = randomAlphaOfLength(10); int size = randomIntBetween(3, 5); for (int i = 0; i < nShards; i++) { CompletionSuggestion suggestion = new CompletionSuggestion(name, size); |