[TEST] Add refresh to make sure watch record is in the index before checking the mappings.
Original commit: elastic/x-pack-elasticsearch@bd9b266af1
This commit is contained in:
parent
1d052e545d
commit
73e64292b0
|
@ -57,7 +57,7 @@ public class HistoryTemplateTimeMappingsTests extends AbstractWatcherIntegration
|
|||
|
||||
// the action should fail as no email server is available
|
||||
assertWatchWithMinimumActionsCount("_id", WatchRecord.State.EXECUTED, 1);
|
||||
|
||||
refresh();
|
||||
GetMappingsResponse mappingsResponse = client().admin().indices().prepareGetMappings().get();
|
||||
assertThat(mappingsResponse, notNullValue());
|
||||
assertThat(mappingsResponse.getMappings().isEmpty(), is(false));
|
||||
|
|
Loading…
Reference in New Issue