Skip to content

Commit ce015e7

Browse files
prdoylenielsbauman
andauthored
Ensure there's a master node
Co-authored-by: Niels Bauman <[email protected]>
1 parent 07b2d8b commit ce015e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/internalClusterTest/java/org/elasticsearch/reservedstate/service/FileSettingsServiceIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,8 @@ public void testSettingsAppliedOnMasterReElection() throws Exception {
504504
}
505505

506506
public void testHealthIndicatorWithSingleNode() throws Exception {
507-
internalCluster().setBootstrapMasterNodeIndex(0);
508507
logger.info("--> start the node");
509-
String nodeName = internalCluster().startNode((dataNode()));
508+
String nodeName = internalCluster().startNode();
510509
FileSettingsService masterFileSettingsService = internalCluster().getInstance(FileSettingsService.class, nodeName);
511510
assertBusy(() -> assertTrue(masterFileSettingsService.watching()));
512511

0 commit comments

Comments
 (0)