-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cli): pre-factor the sanitizer tests (#22436)
Moving tests around so that we can make #22413 smaller
- Loading branch information
Showing
26 changed files
with
138 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
tests/testdata/test/ops_sanitizer_multiple_timeout_tests.out
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Check [WILDCARD]/exit_sanitizer.ts | ||
running 3 tests from [WILDCARD]/exit_sanitizer.ts | ||
exit(0) ... FAILED ([WILDCARD]) | ||
exit(1) ... FAILED ([WILDCARD]) | ||
exit(2) ... FAILED ([WILDCARD]) | ||
|
||
ERRORS | ||
|
||
exit(0) => [WILDCARD]/exit_sanitizer.ts:[WILDCARD] | ||
error: Error: Test case attempted to exit with exit code: 0 | ||
Deno.exit(0); | ||
^ | ||
at [WILDCARD] | ||
at [WILDCARD]/exit_sanitizer.ts:2:8 | ||
|
||
exit(1) => [WILDCARD]/exit_sanitizer.ts:[WILDCARD] | ||
error: Error: Test case attempted to exit with exit code: 1 | ||
Deno.exit(1); | ||
^ | ||
at [WILDCARD] | ||
at [WILDCARD]/exit_sanitizer.ts:6:8 | ||
|
||
exit(2) => [WILDCARD]/exit_sanitizer.ts:[WILDCARD] | ||
error: Error: Test case attempted to exit with exit code: 2 | ||
Deno.exit(2); | ||
^ | ||
at [WILDCARD] | ||
at [WILDCARD]/exit_sanitizer.ts:10:8 | ||
|
||
FAILURES | ||
|
||
exit(0) => [WILDCARD]/exit_sanitizer.ts:[WILDCARD] | ||
exit(1) => [WILDCARD]/exit_sanitizer.ts:[WILDCARD] | ||
exit(2) => [WILDCARD]/exit_sanitizer.ts:[WILDCARD] | ||
|
||
FAILED | 0 passed | 3 failed ([WILDCARD]) | ||
|
||
error: Test failed |
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
...anitizer_closed_inside_started_before.out → ...anitizer_closed_inside_started_before.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
45 changes: 45 additions & 0 deletions
45
tests/testdata/test/sanitizer/ops_sanitizer_multiple_timeout_tests.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Check [WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts | ||
running 2 tests from [WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts | ||
test 1 ... FAILED ([WILDCARD]) | ||
test 2 ... FAILED ([WILDCARD]) | ||
|
||
ERRORS | ||
|
||
test 1 => [WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD] | ||
error: Leaking async ops: | ||
- 2 async operations to sleep for a duration were started in this test, but never completed. This is often caused by not cancelling a `setTimeout` or `setInterval` call. The operations were started here: | ||
at [WILDCARD] | ||
at setTimeout ([WILDCARD]) | ||
at test ([WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD]) | ||
at [WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:8:27 | ||
at [WILDCARD] | ||
|
||
at [WILDCARD] | ||
at setTimeout ([WILDCARD]) | ||
at test ([WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD]) | ||
at [WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:8:27 | ||
at [WILDCARD] | ||
|
||
test 2 => [WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD] | ||
error: Leaking async ops: | ||
- 2 async operations to sleep for a duration were started in this test, but never completed. This is often caused by not cancelling a `setTimeout` or `setInterval` call. The operations were started here: | ||
at [WILDCARD] | ||
at setTimeout ([WILDCARD]) | ||
at test ([WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD]) | ||
at [WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:10:27 | ||
at [WILDCARD] | ||
|
||
at [WILDCARD] | ||
at setTimeout ([WILDCARD]) | ||
at test ([WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD]) | ||
at [WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:10:27 | ||
at [WILDCARD] | ||
|
||
FAILURES | ||
|
||
test 1 => [WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD] | ||
test 2 => [WILDCARD]/ops_sanitizer_multiple_timeout_tests.ts:[WILDCARD] | ||
|
||
FAILED | 0 passed | 2 failed ([WILDCARD]) | ||
|
||
error: Test failed |
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
...tizer_multiple_timeout_tests_no_trace.out → ...tizer_multiple_timeout_tests_no_trace.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../testdata/test/ops_sanitizer_nexttick.out → ...test/sanitizer/ops_sanitizer_nexttick.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...testdata/test/ops_sanitizer_step_leak.out → ...est/sanitizer/ops_sanitizer_step_leak.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
tests/testdata/test/sanitizer/ops_sanitizer_timeout_failure.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Check [WILDCARD]/ops_sanitizer_timeout_failure.ts | ||
running 1 test from [WILDCARD]/ops_sanitizer_timeout_failure.ts | ||
wait ... ok ([WILDCARD]) | ||
|
||
ok | 1 passed | 0 failed ([WILDCARD]) | ||
|
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
.../testdata/test/ops_sanitizer_unstable.out → ...test/sanitizer/ops_sanitizer_unstable.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.