Browse Source

Rest test - allow for snapshots to take 0 milliseconds

Sometimes we get lucky and things are fast :)
Boaz Leskes 7 năm trước cách đây
mục cha
commit
f7da55aa3c

+ 2 - 1
rest-api-spec/src/main/resources/rest-api-spec/test/snapshot.status/10_basic.yml

@@ -38,7 +38,8 @@ setup:
   - gt: { snapshots.0.stats.total.file_count: 0 }
   - gt: { snapshots.0.stats.total.size_in_bytes: 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 missing snapshot status throws an exception":