TEST: Add engine is closed as expected failure msg
This commit adds "engine is closed" as an expected failure message.
This change is due to in which we might access a closed engine on
promotion.
Relates
@@ -382,7 +382,8 @@ public class IndexLevelReplicationTests extends ESIndexLevelReplicationTestCase
indexOnReplica(replicationRequest, shards, replica, primaryPrimaryTerm);
successFullyIndexed.set(true);
} catch (IllegalStateException ise) {
- assertThat(ise.getMessage(), either(containsString("is too old")).or(containsString("cannot be a replication target")));
+ assertThat(ise.getMessage(), either(containsString("is too old"))
+ .or(containsString("cannot be a replication target")).or(containsString("engine is closed")));
} catch (Exception e) {
throw new RuntimeException(e);
}
