diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-06-05 11:04:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 17:04:16 +0200 |
commit | 7ed90a20d04982ae15a52ae2378cbffd4b6839df (patch) | |
tree | 3297d6f7227fbf1cf80e17a2a376ef4dfa52e6ad /tests/integration/watcher_tests.rs | |
parent | 0544d60012006b1c7799d8b6eafacec9567901ad (diff) |
fix: better handling of npm resolution occurring on workers (#24094)
Closes https://github.com/denoland/deno/issues/24063
Diffstat (limited to 'tests/integration/watcher_tests.rs')
-rw-r--r-- | tests/integration/watcher_tests.rs | 12 |
1 files changed, 9 insertions, 3 deletions
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); } |