Docs
API 1.39
Status
Actions

sleep

The `sleep` step.

Pauses for a fixed number of milliseconds, at most 10000. Lint warns W003; a wait_for condition is usually better.

Type: integer

Every step also takes the common step keys: expect, id, if, name, on_error, optional, retry, side_effect, timeout_ms, x_kaab.

#Example

{
  "sleep": 100
}

From the contract fixture when-else, a program the test suite validates.

Was this page helpful?