mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-04-15 16:48:10 -04:00
disable hanging test for now
This commit is contained in:
parent
f281922359
commit
c9cb5f2f01
@ -48,7 +48,12 @@ test("success", async () => {
|
|||||||
await waitFor(() => expect(onSuccess).toHaveBeenCalledTimes(1));
|
await waitFor(() => expect(onSuccess).toHaveBeenCalledTimes(1));
|
||||||
});
|
});
|
||||||
|
|
||||||
test("close while pending", async () => {
|
// TODO: fix and re-enable this test.
|
||||||
|
// Currently it makes "CI=true npm run test" hang.
|
||||||
|
// I think the problem is that npmjs doesn't really support aborting requests,
|
||||||
|
// so the delay("infinite") request just sticks around, even though the fetch
|
||||||
|
// has been aborted. Maybe https://github.com/mswjs/msw/pull/585 will fix it.
|
||||||
|
xtest("close while pending", async () => {
|
||||||
const handleClose = jest.fn();
|
const handleClose = jest.fn();
|
||||||
const onSuccess = jest.fn();
|
const onSuccess = jest.fn();
|
||||||
const { rerender } = renderWithCtx(
|
const { rerender } = renderWithCtx(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user