mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
Test: wait for green
This commit is contained in:
parent
3ff0b21c21
commit
b444d2c31a
@ -45,6 +45,7 @@ public class FieldStatsIntegrationTests extends ElasticsearchIntegrationTest {
|
|||||||
"test", "string", "type=string", "date", "type=date", "double", "type=double", "double", "type=double",
|
"test", "string", "type=string", "date", "type=date", "double", "type=double", "double", "type=double",
|
||||||
"float", "type=float", "long", "type=long", "integer", "type=integer", "short", "type=short", "byte", "type=byte"
|
"float", "type=float", "long", "type=long", "integer", "type=integer", "short", "type=short", "byte", "type=byte"
|
||||||
));
|
));
|
||||||
|
ensureGreen("test");
|
||||||
|
|
||||||
byte minByte = Byte.MAX_VALUE;
|
byte minByte = Byte.MAX_VALUE;
|
||||||
byte maxByte = Byte.MIN_VALUE;
|
byte maxByte = Byte.MIN_VALUE;
|
||||||
@ -129,6 +130,7 @@ public class FieldStatsIntegrationTests extends ElasticsearchIntegrationTest {
|
|||||||
assertAcked(prepareCreate("test3").addMapping(
|
assertAcked(prepareCreate("test3").addMapping(
|
||||||
"test", "value", "type=long"
|
"test", "value", "type=long"
|
||||||
));
|
));
|
||||||
|
ensureGreen("test1", "test2", "test3");
|
||||||
|
|
||||||
indexRange("test1", -10, 100);
|
indexRange("test1", -10, 100);
|
||||||
indexRange("test2", 101, 200);
|
indexRange("test2", 101, 200);
|
||||||
@ -180,6 +182,7 @@ public class FieldStatsIntegrationTests extends ElasticsearchIntegrationTest {
|
|||||||
assertAcked(prepareCreate("test2").addMapping(
|
assertAcked(prepareCreate("test2").addMapping(
|
||||||
"test", "value", "type=string"
|
"test", "value", "type=string"
|
||||||
));
|
));
|
||||||
|
ensureGreen("test1", "test2");
|
||||||
|
|
||||||
client().prepareIndex("test1", "test").setSource("value", 1l).get();
|
client().prepareIndex("test1", "test").setSource("value", 1l).get();
|
||||||
client().prepareIndex("test1", "test").setSource("value", 2l).get();
|
client().prepareIndex("test1", "test").setSource("value", 2l).get();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user