Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Access is denied" when running cargo test on Windows #1618

Open
RReverser opened this issue Aug 20, 2024 · 0 comments
Open

"Access is denied" when running cargo test on Windows #1618

RReverser opened this issue Aug 20, 2024 · 0 comments

Comments

@RReverser
Copy link
Member

When running cargo test -p spacetimedb-sdk on Windows, I'm getting tons of test failures like

---- rust::reconnect_same_address stdout ----
could not save config file: Access is denied. (os error 5)
Note: Using --project-path to provide a wasm file is deprecated, and will be
removed in a future release. Please use --wasm-file instead.
Uploading to local => http://127.0.0.1:3000
Publishing module...
thread 'rust::reconnect_same_address' panicked at crates\testing\src\lib.rs:38:10:
called `Result::unwrap()` on an `Err` value: Access is denied. (os error 5)

---- rust::delete_address stdout ----
could not save config file: Access is denied. (os error 5)
Note: Using --project-path to provide a wasm file is deprecated, and will be
removed in a future release. Please use --wasm-file instead.
Uploading to local => http://127.0.0.1:3000
Publishing module...
thread 'rust::delete_address' panicked at crates\testing\src\lib.rs:38:10:
called `Result::unwrap()` on an `Err` value: Access is denied. (os error 5)

---- rust::subscribe_all_select_star stdout ----
could not save config file: Access is denied. (os error 5)
Note: Using --project-path to provide a wasm file is deprecated, and will be
removed in a future release. Please use --wasm-file instead.
Uploading to local => http://127.0.0.1:3000
Publishing module...
thread 'rust::subscribe_all_select_star' panicked at crates\testing\src\lib.rs:38:10:
called `Result::unwrap()` on an `Err` value: Access is denied. (os error 5)

This has been happening for a couple of months now - I vaguely remember some changing to file locking - but I kept working around with --test-threads 1 so never raised this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant