summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-08-08 20:15:11 +0200
committerBert Belder <bertbelder@gmail.com>2020-08-08 22:06:44 +0200
commitf17eb634faa01c0d03cd2886e740357ab9cbb5a1 (patch)
tree9ab31ede76a8c3b93c8f070570e3e31f048b83fb
parent9806933f57e9664f4f094dbc3e17511c8daefc1b (diff)
test(cli/inspector_port_collision): skip test on WSL (#6991)
-rw-r--r--cli/tests/integration_tests.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 29b477dc1..c4544669f 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -2922,6 +2922,13 @@ async fn inspector_pause() {
#[tokio::test]
async fn inspector_port_collision() {
+ // Skip this test on WSL, which allows multiple processes to listen on the
+ // same port, rather than making `bind()` fail with `EADDRINUSE`.
+ if cfg!(target_os = "linux") && std::env::var_os("WSL_DISTRO_NAME").is_some()
+ {
+ return;
+ }
+
let script = util::tests_path().join("inspector1.js");
let inspect_flag = inspect_flag_with_unique_port("--inspect");