timeout and sleep should use marked syntax for time
Bug #304735 reported by
e.mortoray
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TestPlan |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The use of a millisecond value for sleep and timeout isn't clear, and errorprone when using many minute durations.
This should use a syntax akin to durations, though the duration syntax (PT10m50s) seems a bit bulky for these operations (especially since only lower values are expected. Consider instead just using a simple marker:
ms : milliseconds
s : seconds
m : minutes
Such as
sleep 5m
Also allow decimals:
sleep 2.5m
Changed in testplan: | |
milestone: | 0.9-candidate → 1.0-candidate |
Changed in testplan: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Partially backwards incompatible. Emit warning when no unit is used and default o ms.