From e4c60bc1c658be762f59d3c22b4040777a5100f8 Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Sat, 25 Mar 2023 10:59:39 +0100 Subject: chore(tests): enable `single_compile_with_reload` again (#18196) --- cli/tests/integration/run_tests.rs | 9 ++++----- cli/tests/testdata/run/single_compile_with_reload.ts | 4 ++-- cli/tests/testdata/run/single_compile_with_reload.ts.out | 2 -- 3 files changed, 6 insertions(+), 9 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index b29f735c4..4a0581b84 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -1552,11 +1552,10 @@ itest!(jsx_import_source_error { exit_code: 1, }); -// TODO(#11128): Flaky. Re-enable later. -// itest!(single_compile_with_reload { -// args: "run --relcert/oad --allow-read run/single_compile_with_reload.ts", -// output: "run/single_compile_with_reload.ts.out", -// }); +itest!(single_compile_with_reload { + args: "run --reload --allow-read run/single_compile_with_reload.ts", + output: "run/single_compile_with_reload.ts.out", +}); itest!(proto_exploit { args: "run run/proto_exploit.js", diff --git a/cli/tests/testdata/run/single_compile_with_reload.ts b/cli/tests/testdata/run/single_compile_with_reload.ts index ea6a73474..9478ad523 100644 --- a/cli/tests/testdata/run/single_compile_with_reload.ts +++ b/cli/tests/testdata/run/single_compile_with_reload.ts @@ -4,14 +4,14 @@ await import("./single_compile_with_reload_dyn.ts"); console.log("2"); await new Promise((r) => new Worker( - import.meta.resolve("single_compile_with_reload_worker.ts"), + import.meta.resolve("./single_compile_with_reload_worker.ts"), { type: "module" }, ).onmessage = r ); console.log("3"); await new Promise((r) => new Worker( - import.meta.resolve("single_compile_with_reload_worker.ts"), + import.meta.resolve("./single_compile_with_reload_worker.ts"), { type: "module" }, ).onmessage = r ); diff --git a/cli/tests/testdata/run/single_compile_with_reload.ts.out b/cli/tests/testdata/run/single_compile_with_reload.ts.out index b0b2fcaf1..a3986e3af 100644 --- a/cli/tests/testdata/run/single_compile_with_reload.ts.out +++ b/cli/tests/testdata/run/single_compile_with_reload.ts.out @@ -1,8 +1,6 @@ -Check [WILDCARD]single_compile_with_reload.ts Hello 1 2 -Check [WILDCARD]single_compile_with_reload_worker.ts Hello from worker 3 Hello from worker -- cgit v1.2.3