Skip to content

Commit db36c4d

Browse files
committed
[TEST] make sure update task is actually executed
The update task that was submitted in this test never got executed if node_2 was not master.
1 parent 247f587 commit db36c4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/org/elasticsearch/indices/store/IndicesStoreIntegrationTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ public ClusterState execute(ClusterState currentState) throws Exception {
154154
.build();
155155
}
156156

157+
public boolean runOnlyOnMaster() {
158+
return false;
159+
}
160+
157161
@Override
158162
public void onFailure(String source, Throwable t) {
159163
}

0 commit comments

Comments
 (0)