[TEST] Make test more robust against slow connection establishing
Original commit: elastic/x-pack-elasticsearch@6f918a44c91c76f038b2c6792bbb5d450ec8a9e8
@@ -61,6 +61,12 @@ teardown:
- 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:
headers: { Authorization: "Basic am9lOnMza3JpdA==" }
remote.info: {}
