Skip to content

Commit f7da55a

Browse files
committed
Rest test - allow for snapshots to take 0 milliseconds
Sometimes we get lucky and things are fast :)
1 parent 9aa562d commit f7da55a

File tree

1 file changed

+2
-1
lines changed
  • rest-api-spec/src/main/resources/rest-api-spec/test/snapshot.status

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ setup:
3838
- gt: { snapshots.0.stats.total.file_count: 0 }
3939
- gt: { snapshots.0.stats.total.size_in_bytes: 0 }
4040
- is_true: snapshots.0.stats.start_time_in_millis
41-
- is_true: snapshots.0.stats.time_in_millis
41+
## fast in memory snapshots can take less than one millisecond to complete.
42+
- gte: { snapshots.0.stats.time_in_millis: 0 }
4243

4344
---
4445
"Get missing snapshot status throws an exception":

0 commit comments

Comments
 (0)