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:
parent
972bdc09ee
commit
cd8e059885
|
@ -325,7 +325,7 @@ public class SimpleVersioningIT extends ESIntegTestCase {
|
||||||
ids = new IDSource() {
|
ids = new IDSource() {
|
||||||
@Override
|
@Override
|
||||||
public String next() {
|
public String next() {
|
||||||
return TestUtil.randomSimpleString(random);
|
return TestUtil.randomSimpleString(random, 1, 10);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
@ -335,7 +335,7 @@ public class SimpleVersioningIT extends ESIntegTestCase {
|
||||||
ids = new IDSource() {
|
ids = new IDSource() {
|
||||||
@Override
|
@Override
|
||||||
public String next() {
|
public String next() {
|
||||||
return TestUtil.randomRealisticUnicodeString(random);
|
return TestUtil.randomRealisticUnicodeString(random, 1, 20);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue