SpixyS
Denoβ€’3y agoβ€’
3 replies
Spixy

Test case is leaking resources

Hi, all my tests keeps failing because of
error: AssertionError: Test case is leaking 2 resources:
 - A timer (rid 770) was started before the test started, but was fired/cleared during the test. Do not close resources in a test that were not created during that test.
 - A timer (rid 773) was started during the test, but not fired/cleared during the test. Clear the timer by calling `clearInterval` or `clearTimeout`.

    at assert (deno:ext/web/00_infra.js:295:13) ...
Was this page helpful?