Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mtojek opened this issue Dec 6, 2022 · 0 comments · Fixed by #5361
Closed

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

mtojek opened this issue Dec 6, 2022 · 0 comments · Fixed by #5361

Comments

@mtojek
Copy link
Member

mtojek commented Dec 6, 2022

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant