-
-
Notifications
You must be signed in to change notification settings - Fork 751
Closed
Description
- CodeceptJS Timeouts
should stop test when timeout exceeded:
Uncaught Error: expect(received).toContain(expected) // indexOf
Expected substring: "Timeout 1s exceeded"
Received string: "CodeceptJS v3.7.5 #StandWithUkraine
Using test root "/home/runner/work/CodeceptJS/CodeceptJS/test/data/sandbox/configs/timeouts"·
timed out in 2s --·
✖ no timeout in 2010ms·
✖ timeout in 1 #fourth in 1001ms·
-- FAILURES:·
- timed out in 2s
no timeout:······
Timeout 2s exceeded (with Before hook)
TestTimeoutError:·
at /home/runner/work/CodeceptJS/CodeceptJS/lib/listener/globalTimeout.js:135:17
at /home/runner/work/CodeceptJS/CodeceptJS/lib/recorder.js:299:16······
◯ File: file:///home/runner/work/CodeceptJS/CodeceptJS/test/data/sandbox/configs/timeouts/suite_timeout_test.js···
◯ Scenario Steps:
✖ I.waitForSleep(3000) at Test. (./suite_timeout_test.js:4:5)···· - timed out in 2s
timeout in 1 #fourth:······
Step I.waitForSleep(3000) timed out after 1s
StepTimeoutError:·
at /home/runner/work/CodeceptJS/CodeceptJS/lib/listener/globalTimeout.js:137:15
at /home/runner/work/CodeceptJS/CodeceptJS/lib/recorder.js:299:16······
◯ File: file:///home/runner/work/CodeceptJS/CodeceptJS/test/data/sandbox/configs/timeouts/suite_timeout_test.js···
◯ Scenario Steps:
✖ I.waitForSleep(3000) at Test. (./suite_timeout_test.js:8:5)·····
FAIL | 0 passed, 2 failed // 3s
Run with --verbose flag to see complete NodeJS stacktrace
"
at /home/runner/work/CodeceptJS/CodeceptJS/test/runner/timeout_test.js:19:22
at ChildProcess.exithandler (node:child_process:424:5)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1101:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
Metadata
Metadata
Assignees
Labels
No labels