[Monitoring] Fix HttpExporterIT (elastic/x-pack-elasticsearch#2702)

Uses the appropriate overload of `generateRandomStringArray` to disallow empty arrays from being returned.

Original commit: elastic/x-pack-elasticsearch@2596653ca1
This commit is contained in:
Chris Earle 2017-10-06 08:59:44 -06:00 committed by GitHub
parent f73d0c7a07
commit 22c804ed24
1 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ public class HttpExporterIT extends MonitoringIntegTestCase {
public void testExportWithHeaders() throws Exception {
final String headerValue = randomAlphaOfLengthBetween(3, 9);
final String[] array = generateRandomStringArray(2, 4, false);
final String[] array = generateRandomStringArray(2, 4, false, false);
final Map<String, String[]> headers = new HashMap<>();
@ -176,7 +176,7 @@ public class HttpExporterIT extends MonitoringIntegTestCase {
final boolean useHeaders = randomBoolean();
final String headerValue = randomAlphaOfLengthBetween(3, 9);
final String[] array = generateRandomStringArray(2, 4, false);
final String[] array = generateRandomStringArray(2, 4, false, false);
final Map<String, String[]> headers = new HashMap<>();