Skip to content

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

Open
@paeifbnaeufbpae

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions