clean up tests
This commit is contained in:
parent
80c8a62ea1
commit
a34da6ff75
9
veilid-tools/run_tests.sh
Executable file
9
veilid-tools/run_tests.sh
Executable 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
|
@ -99,6 +99,7 @@ cfg_if! {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused_variables)]
|
||||||
pub async fn blocking_wrapper<F, R>(blocking_task: F, err_result: R) -> R
|
pub async fn blocking_wrapper<F, R>(blocking_task: F, err_result: R) -> R
|
||||||
where
|
where
|
||||||
F: FnOnce() -> R + Send + 'static,
|
F: FnOnce() -> R + Send + 'static,
|
||||||
|
15
veilid-tools/webdriver.json
Normal file
15
veilid-tools/webdriver.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user