mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
b53997273d
This commit makes the errors produced from the resource sanitizer much more human readable. It does this by using real words rather than our "resource names" when referring to resources, and by giving helpful hints on how to clean up each of the resources.
21 lines
648 B
Text
21 lines
648 B
Text
Check [WILDCARD]/test/resource_sanitizer.ts
|
|
running 1 test from [WILDCARD]/test/resource_sanitizer.ts
|
|
test leak ... FAILED ([WILDCARD])
|
|
|
|
failures:
|
|
|
|
leak
|
|
AssertionError: Test case is leaking 2 resources:
|
|
|
|
- The stdin pipe (rid 0) was opened before the test started, but was closed during the test. Do not close resources in a test that were not created during that test.
|
|
- A file (rid 3) was opened during the test, but not closed during the test. Close the file handle by calling `file.close()`.
|
|
|
|
at [WILDCARD]
|
|
|
|
failures:
|
|
|
|
leak
|
|
|
|
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
|
|
|
|
error: Test failed
|