From 200cb6a5b3f02f4d0f5dd267ec17740f0701c226 Mon Sep 17 00:00:00 2001 From: Alexander Reelsen Date: Wed, 30 Aug 2017 14:04:24 +0200 Subject: [PATCH] Tests: Remove is_true check in REST test If the duration time was 0 (and this might happen due to using System.currentTimeMillis), the is_true check still returns false. The correct fix will be done later to replace the offending measurement calls and replace them. Then we can add back this line. Original commit: elastic/x-pack-elasticsearch@076a9a37cc70df56cec1f1984b5d0cb391bac008 --- .../rest-api-spec/test/watcher/execute_watch/10_basic.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/plugin/src/test/resources/rest-api-spec/test/watcher/execute_watch/10_basic.yml b/plugin/src/test/resources/rest-api-spec/test/watcher/execute_watch/10_basic.yml index 71a9df9d241..5993cc44478 100644 --- a/plugin/src/test/resources/rest-api-spec/test/watcher/execute_watch/10_basic.yml +++ b/plugin/src/test/resources/rest-api-spec/test/watcher/execute_watch/10_basic.yml @@ -61,7 +61,6 @@ teardown: - match: { watch_record.status.state.active: true } - is_true: watch_record.node - match: { watch_record.status.actions.indexme.ack.state: "ackable" } - - is_true: watch_record.result.execution_duration --- "Test execute watch API with user supplied watch":