-
Notifications
You must be signed in to change notification settings - Fork 20
344 сreate integration tests for airdropper #370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
344 сreate integration tests for airdropper #370
The head ref may contain hidden characters: "344_\u0441reate_integration_tests_for_airdropper"
Conversation
…tion_tests_for_airdropper
…ion_tests_for_airdropper
…tion_tests_for_airdropper
…tion_tests_for_airdropper
run-test-faucet.sh
Outdated
| ACCOUNT=$(solana address -k "/$HOME/.config/solana/id.json") | ||
| echo "New account $ACCOUNT" | ||
| if ! solana account "$ACCOUNT"; then | ||
| echo "airdropping..." | ||
| solana airdrop 5000 "$ACCOUNT" | ||
| # check that balance >= 10 otherwise airdroping by 1 SOL up to 10 | ||
| BALANCE=$(solana balance "$ACCOUNT" | tr '.' '\t'| tr '[:space:]' '\t' | cut -f1) | ||
| while [ "$BALANCE" -lt 10 ]; do | ||
| solana airdrop 1 "$ACCOUNT" | ||
| sleep 1 | ||
| BALANCE=$(solana balance "$ACCOUNT" | tr '.' '\t'| tr '[:space:]' '\t' | cut -f1) | ||
| done | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe better to use: create-test-accounts.sh 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
No description provided.