Skip to content

flaky: WorkspacePage exceeded timeout of 5000 ms for a test #5309

@mtojek

Description

@mtojek

Spotted in: https://github.com/coder/coder/actions/runs/3629622036/jobs/6122043573

Summary of all failing tests
FAIL src/pages/WorkspacePage/WorkspacePage.test.tsx (33.78 s)
  ● WorkspacePage › requests a delete job when the user presses Delete and confirms

    thrown: "Exceeded timeout of 5000 ms for a test.
    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

      87 |
      88 | describe("WorkspacePage", () => {
    > 89 |   it("requests a delete job when the user presses Delete and confirms", async () => {
         |   ^
      90 |     const user = userEvent.setup()
      91 |     const deleteWorkspaceMock = jest
      92 |       .spyOn(api, "deleteWorkspace")

      at src/pages/WorkspacePage/WorkspacePage.test.tsx:89:3
      at Object.<anonymous> (src/pages/WorkspacePage/WorkspacePage.test.tsx:88:1)


Test Suites: 1 failed, 66 passed, 67 total
Tests:       1 failed, 930 passed, 931 total
Snapshots:   0 total
Time:        100.145 s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.

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