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/action/bulk/BulkResponseTests.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/action/bulk/BulkResponseTests.java')
-rw-r--r-- | core/src/test/java/org/elasticsearch/action/bulk/BulkResponseTests.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/test/java/org/elasticsearch/action/bulk/BulkResponseTests.java b/core/src/test/java/org/elasticsearch/action/bulk/BulkResponseTests.java index 91bdc83bba..08622b327e 100644 --- a/core/src/test/java/org/elasticsearch/action/bulk/BulkResponseTests.java +++ b/core/src/test/java/org/elasticsearch/action/bulk/BulkResponseTests.java @@ -71,9 +71,9 @@ public class BulkResponseTests extends ESTestCase { bulkItems[i] = new BulkItemResponse(i, opType, randomDocWriteResponses.v1()); expectedBulkItems[i] = new BulkItemResponse(i, opType, randomDocWriteResponses.v2()); } else { - String index = randomAsciiOfLength(5); - String type = randomAsciiOfLength(5); - String id = randomAsciiOfLength(5); + String index = randomAlphaOfLength(5); + String type = randomAlphaOfLength(5); + String id = randomAlphaOfLength(5); Tuple<Throwable, ElasticsearchException> failures = randomExceptions(); |