[TEST] Make test more robust against slow connection establishing

Original commit: elastic/x-pack-elasticsearch@6f918a44c9
This commit is contained in:
Simon Willnauer 2017-04-11 14:43:44 +02:00
parent 4da1c5b9dc
commit 9c542173b7
1 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,12 @@ teardown:
- match: {transient: {search.remote.test_remote_cluster.seeds: $remote_ip}} - match: {transient: {search.remote.test_remote_cluster.seeds: $remote_ip}}
# we do another search here since this will enforce the connection to be established
# otherwise the cluster might not have been connected yet.
- do:
search:
index: test_remote_cluster:test_index
- do: - do:
headers: { Authorization: "Basic am9lOnMza3JpdA==" } headers: { Authorization: "Basic am9lOnMza3JpdA==" }
remote.info: {} remote.info: {}