clean up tests

This commit is contained in:
John Smith 2022-11-27 11:27:06 -05:00
parent 80c8a62ea1
commit a34da6ff75
3 changed files with 25 additions and 0 deletions

9
veilid-tools/run_tests.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
if [[ "$1" == "wasm" ]]; then
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --chrome --headless
else
cargo test --features=rt-tokio
cargo test --features=rt-async-std
cargo test --features=rt-tokio,log --no-default-features
cargo test --features=rt-async-std,log --no-default-features
fi

View File

@ -99,6 +99,7 @@ cfg_if! {
}
}
#[allow(unused_variables)]
pub async fn blocking_wrapper<F, R>(blocking_task: F, err_result: R) -> R
where
F: FnOnce() -> R + Send + 'static,

View File

@ -0,0 +1,15 @@
{
"moz:firefoxOptions": {
"prefs": {
"media.navigator.streams.fake": true,
"media.navigator.permission.disabled": true
},
"args": []
},
"goog:chromeOptions": {
"args": [
"--use-fake-device-for-media-stream",
"--use-fake-ui-for-media-stream"
]
}
}