Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
- Remove test-ledger folder
- Run python subprocess with `shell=True`
  • Loading branch information
enriquefynn committed Mar 30, 2022
1 parent 783477b commit feea526
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,28 +109,29 @@ jobs:
tests/test_solido.py
kill -9 $validator
rm -r test-ledger
- name: Run Multisig integration test
run: |
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
validator=$(tests/start_test_validator.py)
# We don't need to run keygen/setup again, the private key and state
# should still be there from the previous run.
tests/airdrop_lamports.sh
tests/test_multisig.py
kill -9 $validator
rm -r test-ledger
- name: Run Anker integration test
run: |
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
validator=$(tests/start_test_validator.py)
# We don't need to run keygen/setup again, the private key and state
# should still be there from the previous run.
tests/airdrop_lamports.sh
tests/test_anker.py
kill -9 $validator
rm -r test-ledger
lint:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions tests/start_test_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'solana-test-validator',
],
stdout=subprocess.DEVNULL,
shell=True,
)

# Wait up to 60 seconds for the validator to be running and processing blocks. We
Expand Down

0 comments on commit feea526

Please sign in to comment.