fix tests

This commit is contained in:
John Smith 2023-04-23 19:19:54 -04:00
parent 75c16b8c51
commit 31edb8c059
4 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
pushd $SCRIPTDIR 2>/dev/null
if [[ "$1" == "wasm" ]]; then
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --firefox --headless
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --firefox --headless --features=rt-wasm-bindgen
elif [[ "$1" == "ios" ]]; then
SYMROOT=/tmp/testout
APPNAME=veilidcore-tests

View File

@ -11,7 +11,7 @@ use crate::*;
pub async fn run_all_tests() {
info!("TEST: test_host_interface");
test_host_interface::test_all().await;
info!("TEST: test_dht_key");
info!("TEST: test_types");
test_types::test_all().await;
info!("TEST: test_veilid_core");
test_veilid_core::test_all().await;

View File

@ -37,9 +37,9 @@ async fn run_test_host_interface() {
}
#[wasm_bindgen_test]
async fn run_test_dht_key() {
async fn run_test_types() {
setup();
test_dht_key::test_all().await;
test_types::test_all().await;
}
#[wasm_bindgen_test]

View File

@ -3,7 +3,7 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
pushd $SCRIPTDIR 2>/dev/null
if [[ "$1" == "wasm" ]]; then
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --firefox --headless
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --firefox --headless --features=rt-wasm-bindgen
elif [[ "$1" == "ios" ]]; then
SYMROOT=/tmp/testout
APPNAME=veilidtools-tests