DenoDDeno
Powered by
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) ...
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) ...
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deno test Leaking resources
.Literfieber..Literfieber / help
3y ago
AssertionError: Test case is leaking async ops
texasrangerTtexasranger / help
4y ago
Test Case Names Disappearing?
JamesJJames / help
4mo ago