From 7ed90a20d04982ae15a52ae2378cbffd4b6839df Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 5 Jun 2024 11:04:16 -0400 Subject: fix: better handling of npm resolution occurring on workers (#24094) Closes https://github.com/denoland/deno/issues/24063 --- tests/integration/watcher_tests.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/watcher_tests.rs b/tests/integration/watcher_tests.rs index 42e4924a8..252411627 100644 --- a/tests/integration/watcher_tests.rs +++ b/tests/integration/watcher_tests.rs @@ -1725,7 +1725,7 @@ globalThis.state = { i: 0 }; function bar() { globalThis.state.i = 0; - console.log("got request1", globalThis.state.i); + console.error("got request1", globalThis.state.i); } function handler(_req) { @@ -1738,8 +1738,14 @@ console.log("Listening...") "#, ); - wait_contains("Failed to reload module", &mut stderr_lines).await; - wait_contains("File change detected", &mut stderr_lines).await; + wait_contains("Replaced changed module", &mut stderr_lines).await; + util::deno_cmd() + .current_dir(t.path()) + .arg("eval") + .arg("await fetch('http://localhost:11111');") + .spawn() + .unwrap(); + wait_contains("got request1", &mut stderr_lines).await; check_alive_then_kill(child); } -- cgit v1.2.3