fix expcetion msg comparison
This commit is contained in:
parent
83ef665cba
commit
fd79e40e65
|
@ -160,7 +160,8 @@ public class DedicatedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTest
|
|||
client.admin().cluster().prepareRestoreSnapshot("test-repo", "test-snap").setRestoreGlobalState(true).setWaitForCompletion(true).execute().actionGet();
|
||||
fail("can't restore minimum master nodes");
|
||||
} catch (IllegalArgumentException ex) {
|
||||
assertEquals("cannot set discovery.zen.minimum_master_nodes to more than the current master nodes count [1]", ex.getMessage());
|
||||
assertEquals("illegal value can't update [discovery.zen.minimum_master_nodes] from [1] to [2]", ex.getMessage());
|
||||
assertEquals("cannot set discovery.zen.minimum_master_nodes to more than the current master nodes count [1]", ex.getCause().getMessage());
|
||||
}
|
||||
logger.info("--> ensure that zen discovery minimum master nodes wasn't restored");
|
||||
assertThat(client.admin().cluster().prepareState().setRoutingTable(false).setNodes(false).execute().actionGet().getState()
|
||||
|
|
Loading…
Reference in New Issue