Skip to content

flaky UTs fixing #5223

Description

@kobenguyent
  1. 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:·

  1. 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)····
  2. 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions