rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 210 forks source link

Testing Life: `Unable to start the server: Operation not permitted` #306

Open paeifbnaeufbpae opened 11 months ago

paeifbnaeufbpae commented 11 months ago

Describe the bug Following the tutorial up until the chapter "Testing Life" leads to the error:

    Finished test [unoptimized + debuginfo] target(s) in 0.01s
     Running unittests src/lib.rs (target/wasm32-unknown-unknown/debug/deps/wasm_game_of_life-8c6a9afc801f145f.wasm)
no tests to run!
     Running tests/web.rs (target/wasm32-unknown-unknown/debug/deps/web-9748f257ba54a232.wasm)
Set timeout to 20 seconds...
driver status: exit status: 1                     
driver stderr:
    Unable to start the server: Operation not permitted

Error: driver failed to bind port during startup  
error: test failed, to rerun pass `--test web`

When trying to run wasm-pack test --safari --headless (--chrome also fails, but with a different error message).

Running the command with sudo prepended doesn't fix this either. Same output.

To Reproduce Follow the tutorial up until that point.

Expected behavior It doesn't fail!

Additional context Running macOS 14.1.1.