0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

tests: be more liberal with expectation wildcards (#11279)

This commit is contained in:
Casper Beyer 2021-07-05 20:30:51 +08:00 committed by GitHub
parent 220104f577
commit ea87d860be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 100 deletions

View file

@ -8,42 +8,21 @@ failures:
exit(0)
AssertionError: Test case attempted to exit with exit code: 0
at assert (deno:runtime/js/06_util.js:36:13)
at deno:runtime/js/40_testing.js:92:9
at Object.exit (deno:runtime/js/30_os.js:52:7)
at [WILDCARD]
at [WILDCARD]/test/exit_sanitizer.ts:2:8
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at [WILDCARD]/$deno$test.js:1:27
at [WILDCARD]
exit(1)
AssertionError: Test case attempted to exit with exit code: 1
at assert (deno:runtime/js/06_util.js:36:13)
at deno:runtime/js/40_testing.js:92:9
at Object.exit (deno:runtime/js/30_os.js:52:7)
at [WILDCARD]
at [WILDCARD]/test/exit_sanitizer.ts:6:8
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
exit(2)
AssertionError: Test case attempted to exit with exit code: 2
at assert (deno:runtime/js/06_util.js:36:13)
at deno:runtime/js/40_testing.js:92:9
at Object.exit (deno:runtime/js/30_os.js:52:7)
at [WILDCARD]
at [WILDCARD]/test/exit_sanitizer.ts:10:8
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
failures:

View file

@ -16,102 +16,52 @@ failures:
test 0
Error
at [WILDCARD]/test/fail.ts:2:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at [WILDCARD]/$deno$test.js:1:27
at [WILDCARD]
test 1
Error
at [WILDCARD]/test/fail.ts:5:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
test 2
Error
at [WILDCARD]/test/fail.ts:8:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
test 3
Error
at [WILDCARD]/test/fail.ts:11:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
test 4
Error
at [WILDCARD]/test/fail.ts:14:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
test 5
Error
at [WILDCARD]/test/fail.ts:17:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
test 6
Error
at [WILDCARD]/test/fail.ts:20:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
test 7
Error
at [WILDCARD]/test/fail.ts:23:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
test 8
Error
at [WILDCARD]/test/fail.ts:26:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
test 9
Error
at [WILDCARD]/test/fail.ts:29:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at async [WILDCARD]/$deno$test.js:1:1
at [WILDCARD]
failures:

View file

@ -7,12 +7,7 @@ failures:
test 1
Error
at [WILDCARD]/test/fail_fast.ts:2:9
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at [WILDCARD]/$deno$test.js:1:27
at [WILDCARD]
failures:

View file

@ -8,12 +8,7 @@ failures:
error
Error: fail
at [WILDCARD]/test/finally_timeout.ts:4:11
at asyncOpSanitizer (deno:runtime/js/40_testing.js:35:15)
at resourceSanitizer (deno:runtime/js/40_testing.js:72:13)
at exitSanitizer (deno:runtime/js/40_testing.js:99:15)
at runTest (deno:runtime/js/40_testing.js:206:13)
at Object.runTests (deno:runtime/js/40_testing.js:249:28)
at [WILDCARD]/$deno$test.js:1:27
at [WILDCARD]
failures:

View file

@ -4,5 +4,5 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WIL
error: Uncaught TypeError: Cannot read property 'fn' of undefined
Deno.test();
^
at Object.test (deno:runtime/js/40_testing.js:135:14)
at [WILDCARD]
at [WILDCARD]/test/no_check.ts:1:6