From 444bc15c64f90aa9a4174ed59b2f81d2ff121c9b Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Thu, 19 Jul 2018 10:44:32 +0200 Subject: [PATCH] Rest test - allow for snapshots to take 0 milliseconds Sometimes we get lucky and things are fast :) --- .../resources/rest-api-spec/test/snapshot.status/10_basic.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/snapshot.status/10_basic.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/snapshot.status/10_basic.yml index e9742eb6cce69..e1402cdc1f58b 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/snapshot.status/10_basic.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/snapshot.status/10_basic.yml @@ -40,7 +40,8 @@ setup: - gt: { snapshots.0.stats.incremental.size_in_bytes: 0 } - gt: { snapshots.0.stats.total.file_count: 0 } - is_true: snapshots.0.stats.start_time_in_millis - - is_true: snapshots.0.stats.time_in_millis +## fast in memory snapshots can take less than one millisecond to complete. + - gte: { snapshots.0.stats.time_in_millis: 0 } --- "Get snapshot status with BWC fields":