Skip to content

Commit

Permalink
TEMPORARY: make testbed interactive
Browse files Browse the repository at this point in the history
Bail out on the pmonitor-integration tests early, so that we can perform
a balance migration manually, then run the audit tool. Ideally these
would be integration tests written in rust, but using bash scripts is
faster during review.
  • Loading branch information
conorsch committed Oct 7, 2024
1 parent d5465b5 commit 1c4304c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deployments/scripts/pmonitor-integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -eu

>&2 echo "Preparing pmonitor test bed..."
num_wallets=10
num_wallets=2

# ideally we'd use a tempdir but using a hardcoded dir for debugging
# pmonitor_integration_test_dir="$(mktemp -p /tmp -d pmonitor-integration-test.XXXXXX)"
Expand Down Expand Up @@ -60,7 +60,7 @@ process-compose up --detached --config deployments/compose/process-compose.yml

# ensure network is torn down afterward; comment this out if you want
# to interact with the network after tests complete.
trap 'process-compose down || true' EXIT
# trap 'process-compose down || true' EXIT

# wait for network to come up; lazily sleeping, rather than polling process-compose for "ready" state
sleep 8
Expand All @@ -83,7 +83,6 @@ cargo run --release --bin pmonitor -- \
exit 0



>&2 echo "committing misbehavior"
alice_wallet="${wallets_dir}/wallet-alice"
yes | cargo run --quiet --release --bin pcli -- --home "$alice_wallet" init --grpc-url http://localhost:8080 soft-kms generate
Expand Down

0 comments on commit 1c4304c

Please sign in to comment.