From 9c542173b7b5fde52a27e0a5d30e30728975da26 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Tue, 11 Apr 2017 14:43:44 +0200 Subject: [PATCH] [TEST] Make test more robust against slow connection establishing Original commit: elastic/x-pack-elasticsearch@6f918a44c91c76f038b2c6792bbb5d450ec8a9e8 --- .../resources/rest-api-spec/test/multi_cluster/20_info.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/multi_cluster/20_info.yaml b/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/multi_cluster/20_info.yaml index 38924b87cda..d5d5edd96e3 100644 --- a/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/multi_cluster/20_info.yaml +++ b/qa/multi-cluster-search-security/src/test/resources/rest-api-spec/test/multi_cluster/20_info.yaml @@ -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: {}