Skip to content

Commit

Permalink
fix: allow 3 arguments instead of 2 to handle fully_synced_rpc_ cor…
Browse files Browse the repository at this point in the history
…rectly
  • Loading branch information
gustavovalverde committed Oct 6, 2023
1 parent 427b432 commit fed758b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ list_directory() {

# Function to run cargo test
run_cargo_test() {
cargo test --locked --release --features "$1" --package zebrad --test acceptance -- --nocapture --include-ignored "$2" || { echo "Cargo test failed"; exit 1; }
cargo test --locked --release --features "$1" --package zebrad --test acceptance -- --nocapture --include-ignored "$2" "$3" || { echo "Cargo test failed"; exit 1; }
}

case "$1" in
Expand Down Expand Up @@ -246,7 +246,7 @@ case "$1" in
list_directory "${ZEBRA_CACHED_STATE_DIR}"
# Run both the fully synced RPC test and the subtree snapshot test, one test at a time.
# Since these tests use the same cached state, a state problem in the first test can fail the second test.
run_cargo_test "${ENTRYPOINT_FEATURES}" "--test-threads 1 fully_synced_rpc_"
run_cargo_test "${ENTRYPOINT_FEATURES}" "--test-threads 1" "fully_synced_rpc_"

elif [[ "${TEST_LWD_FULL_SYNC}" -eq "1" ]]; then
# Starting at a cached Zebra tip, run a lightwalletd sync to tip.
Expand Down

0 comments on commit fed758b

Please sign in to comment.