Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
icerove committed Oct 28, 2020
1 parent 5e89d23 commit 853776d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_account_operations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo Create account
../bin/near create-account $testaccount

echo Get account state
RESULT=$(../bin/near state $testaccount -v | ../node_modules/.bin/strip-ansi)
RESULT=$(yes | ../bin/near state $testaccount -v | ../node_modules/.bin/strip-ansi)
echo $RESULT
EXPECTED=".+Account $testaccount.+amount:.+'100000000000000000000000000'.+ "
if [[ ! "$RESULT" =~ $EXPECTED ]]; then
Expand Down
4 changes: 2 additions & 2 deletions test/test_generate_key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ KEY_FILE=~/.near-credentials/$NODE_ENV/generate-key-test.json
rm -f "$KEY_FILE"
echo "Testing generating-key: new key"

RESULT=$(./bin/near generate-key generate-key-test --networkId $NODE_ENV -v)
RESULT=$(yes |./bin/near generate-key generate-key-test --networkId $NODE_ENV -v)
echo $RESULT

if [[ ! -f "${KEY_FILE}" ]]; then
Expand All @@ -21,7 +21,7 @@ fi

echo "Testing generating-key: key for account already exists"

RESULT2=$(./bin/near generate-key generate-key-test --networkId $NODE_ENV -v)
RESULT2=$(yes |./bin/near generate-key generate-key-test --networkId $NODE_ENV -v)
echo $RESULT2

EXPECTED2=".*Account has existing key pair with ed25519:.+ public key.*"
Expand Down

0 comments on commit 853776d

Please sign in to comment.