You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up a simple test in tests/integration_test.rs:
use insta::assert_snapshot;#[test]fntest_thing(){assert_snapshot!("a");}
I'm running on x86_64 linux. cargo test works fine. However, cargo test --target x86_64-pc-windows-gnu fails with invalid handle in insta::env::get_cargo_workspace:
Invalid handle. (os error 6)
stack backtrace:
0: rust_begin_unwind
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/std\src/panicking.rs:665:5
1: core::panicking::panic_fmt
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/core\src/panicking.rs:76:14
2: insta::env::get_cargo_workspace::{{closure}}::{{closure}}
at /home/rcorre/.cargo/registry/src/index.crates.io-6f17d22bba15001f/insta-1.43.1/src/env.rs:481:33
3: core::result::Result<T,E>::unwrap_or_else
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library\core\src\result.rs:1458:23
4: insta::env::get_cargo_workspace::{{closure}}
at /home/rcorre/.cargo/registry/src/index.crates.io-6f17d22bba15001f/insta-1.43.1/src/env.rs:475:26
5: alloc::collections::btree::map::entry::Entry<K,V,A>::or_insert_with
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library\alloc\src\collections\btree\map\entry.rs:186:43
6: insta::env::get_cargo_workspace
at /home/rcorre/.cargo/registry/src/index.crates.io-6f17d22bba15001f/insta-1.43.1/src/env.rs:469:5
7: integration_test::test_thing
at /tmp/example/tests/integration_test.rs:4:5
8: integration_test::test_thing::{{closure}}
at /tmp/example/tests/integration_test.rs:3:16
9: core::ops::function::FnOnce::call_once
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library\core\src\ops\function.rs:250:5
10: core::ops::function::FnOnce::call_once
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869\library/core\src\ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I set up a simple test in
tests/integration_test.rs:I'm running on x86_64 linux.
cargo testworks fine. However,cargo test --target x86_64-pc-windows-gnufails withinvalid handleininsta::env::get_cargo_workspace:Is this expected?
Beta Was this translation helpful? Give feedback.
All reactions