mirror of
https://github.com/re-rxjs/react-rxjs.git
synced 2025-12-08 18:01:51 +00:00
tests: avoid flaky tests
This commit is contained in:
parent
fe99594f74
commit
258582be9a
@ -130,12 +130,12 @@ describe("connectObservable", () => {
|
||||
unmount2()
|
||||
unmount3()
|
||||
|
||||
await wait(90)
|
||||
await wait(85)
|
||||
const { unmount: unmount4 } = renderHook(() => useLatestNumber())
|
||||
expect(nInitCount).toBe(1)
|
||||
unmount4()
|
||||
|
||||
await wait(110)
|
||||
await wait(125)
|
||||
renderHook(() => useLatestNumber())
|
||||
expect(nInitCount).toBe(2)
|
||||
})
|
||||
@ -320,7 +320,7 @@ describe("connectObservable", () => {
|
||||
|
||||
await componentAct(async () => {
|
||||
errStream.error("controlled error")
|
||||
await wait(0)
|
||||
await wait(50)
|
||||
})
|
||||
|
||||
expect(errorCallback).toHaveBeenCalledWith(
|
||||
@ -357,7 +357,7 @@ describe("connectObservable", () => {
|
||||
|
||||
await componentAct(async () => {
|
||||
errStream.error("controlled error")
|
||||
await wait(0)
|
||||
await wait(50)
|
||||
})
|
||||
|
||||
expect(screen.queryByText("Loading...")).toBeNull()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user