Skip to content

Commit eabfc36

Browse files
Prefer refreshAndWaitForReplication in case of seg rep.
Signed-off-by: Finn Carroll <[email protected]>
1 parent 861b73e commit eabfc36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/internalClusterTest/java/org/opensearch/cluster/routing/WeightedRoutingIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ public void testCustomPreferenceShardIdCombination() {
898898
for (int i = 0; i < 30; i++) {
899899
client().prepareIndex("test_index").setId(String.valueOf(i)).setSource("field", "value" + i).get();
900900
}
901-
refresh("test_index");
901+
refreshAndWaitForReplication("test_index");
902902

903903
/*
904904
Execute the same match all query with custom string preference.

0 commit comments

Comments
 (0)