Do not produce empty IDs in simple versioning test

Empty IDs are rejected during indexing, so we should not randomly
produce them during tests. This commit modifies the simple versioning
tests to no longer produce empty IDs.
This commit is contained in:
Jason Tedor 2017-04-15 12:15:45 -04:00
parent 972bdc09ee
commit cd8e059885
1 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ public class SimpleVersioningIT extends ESIntegTestCase {
ids = new IDSource() {
@Override
public String next() {
return TestUtil.randomSimpleString(random);
return TestUtil.randomSimpleString(random, 1, 10);
}
};
break;
@ -335,7 +335,7 @@ public class SimpleVersioningIT extends ESIntegTestCase {
ids = new IDSource() {
@Override
public String next() {
return TestUtil.randomRealisticUnicodeString(random);
return TestUtil.randomRealisticUnicodeString(random, 1, 20);
}
};
break;