[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:
Brian Murphy 2015-05-03 12:53:14 -04:00
parent 1d052e545d
commit 73e64292b0
1 changed files with 1 additions and 1 deletions

View File

@ -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));