From 1c3d5b77b55337e10840f41f10889e9cb44f6046 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Mon, 30 Sep 2019 07:55:23 +0200 Subject: [PATCH] give monitoring more time --- .../elasticsearch/test/enrich/CommonEnrichRestTestCase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java b/x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java index b41af078159..94487f251b7 100644 --- a/x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java +++ b/x-pack/plugin/enrich/qa/common/src/main/java/org/elasticsearch/test/enrich/CommonEnrichRestTestCase.java @@ -90,7 +90,7 @@ public abstract class CommonEnrichRestTestCase extends ESRestTestCase { public void testBasicFlow() throws Exception { setupGenericLifecycleTest(true); - assertBusy(CommonEnrichRestTestCase::verifyEnrichMonitoring, 30, TimeUnit.SECONDS); + assertBusy(CommonEnrichRestTestCase::verifyEnrichMonitoring, 1, TimeUnit.MINUTES); } public void testImmutablePolicy() throws IOException { @@ -185,7 +185,7 @@ public abstract class CommonEnrichRestTestCase extends ESRestTestCase { maxExecutedSearchesTotal = Math.max(maxExecutedSearchesTotal, foundExecutedSearchesTotal); } - assertThat(maxRemoteRequestsTotal, greaterThan(0)); - assertThat(maxExecutedSearchesTotal, greaterThan(0)); + assertThat(maxRemoteRequestsTotal, greaterThanOrEqualTo(1)); + assertThat(maxExecutedSearchesTotal, greaterThanOrEqualTo(1)); } }