Rest test - allow for snapshots to take 0 milliseconds

Sometimes we get lucky and things are fast :)
This commit is contained in:
Boaz Leskes 2018-07-19 10:44:32 +02:00
parent 9aa562d3dd
commit f7da55aa3c
1 changed files with 2 additions and 1 deletions

View File

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