Skip to content
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

flakyなtestの対処 #458

Open
hrk091 opened this issue Jul 30, 2023 · 0 comments
Open

flakyなtestの対処 #458

hrk091 opened this issue Jul 30, 2023 · 0 comments
Assignees

Comments

@hrk091
Copy link
Member

hrk091 commented Jul 30, 2023

https://github.com/cloudnativedaysjp/dreamkast-ui/actions/runs/5701667795/job/15452585580?pr=455

testが、runnerのCPU負荷次第でtiming issueでこけてしまうので、こけないように修正する

FAIL src/components/hooks/__tests__/useRunAfter.spec.tsx
  ● useRunAfter › should run callback after specified delay and skip calls in the middle

    expect(received).toBeLessThan(expected)

    Expected: < 5
    Received:   5

      25 |     expect(trials).toBeGreaterThan(8)
      26 |     expect(fn.mock.calls.length).toBeGreaterThan(1)
    > 27 |     expect(fn.mock.calls.length).toBeLessThan(5)
         |                                  ^
      28 |   })
      29 | })
      30 |

      at Object.toBeLessThan (src/components/hooks/__tests__/useRunAfter.spec.tsx:27:34)
@hrk091 hrk091 self-assigned this Jul 30, 2023
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

No branches or pull requests

1 participant