mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
test(cli): ensure clear timeout doesn't trigger sanitizers (#11396)
This commit is contained in:
parent
5b771e7e83
commit
844910e44f
3 changed files with 19 additions and 0 deletions
|
@ -97,6 +97,12 @@ itest!(exit_sanitizer {
|
||||||
exit_code: 1,
|
exit_code: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
itest!(clear_timeout {
|
||||||
|
args: "test test/clear_timeout.ts",
|
||||||
|
exit_code: 0,
|
||||||
|
output: "test/clear_timeout.out",
|
||||||
|
});
|
||||||
|
|
||||||
itest!(finally_timeout {
|
itest!(finally_timeout {
|
||||||
args: "test test/finally_timeout.ts",
|
args: "test test/finally_timeout.ts",
|
||||||
exit_code: 1,
|
exit_code: 1,
|
||||||
|
|
8
cli/tests/test/clear_timeout.out
Normal file
8
cli/tests/test/clear_timeout.out
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
Check [WILDCARD]/test/clear_timeout.ts
|
||||||
|
running 3 tests from [WILDCARD]/test/clear_timeout.ts
|
||||||
|
test test 1 ... ok ([WILDCARD])
|
||||||
|
test test 2 ... ok ([WILDCARD])
|
||||||
|
test test 3 ... ok ([WILDCARD])
|
||||||
|
|
||||||
|
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ([WILDCARD])
|
||||||
|
|
5
cli/tests/test/clear_timeout.ts
Normal file
5
cli/tests/test/clear_timeout.ts
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
clearTimeout(setTimeout(() => {}, 1000));
|
||||||
|
|
||||||
|
Deno.test("test 1", () => {});
|
||||||
|
Deno.test("test 2", () => {});
|
||||||
|
Deno.test("test 3", () => {});
|
Loading…
Reference in a new issue