Improve Wallet coverage (#2385)

* Add trait for RpcRequestHandler trait for RpcClient and add MockRpcClient for unit tests

* Add request_airdrop integration test

* Add timestamp_tx, witness_tx, and cancel_tx to wallet integration tests; add wallet integration tests to test-stable

* Add test cases

* Ignore plentiful sleeps in unit tests
This commit is contained in:
Tyera Eulberg
2019-01-14 00:10:03 -07:00
committed by GitHub
parent 780360834d
commit 8af61f561b
13 changed files with 894 additions and 612 deletions

View File

@ -28,10 +28,10 @@ for program in programs/native/*; do
done
# Run integration tests serially
for test in tests/*.rs; do
for test in tests/*.rs wallet/tests/*.rs; do
test=${test##*/} # basename x
test=${test%.rs} # basename x .rs
_ cargo test --verbose --features="$FEATURES" --test="$test" -- --test-threads=1 --nocapture
_ cargo test --all --verbose --features="$FEATURES" --test="$test" -- --test-threads=1 --nocapture
done
echo --- ci/localnet-sanity.sh