Skip to content

Commit

Permalink
fix test_apps
Browse files Browse the repository at this point in the history
  • Loading branch information
mossid committed Sep 4, 2018
1 parent 0d81685 commit 8eac3bc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/app/kvstore_test.sh
Expand Up @@ -19,8 +19,6 @@ curl -s 127.0.0.1:26657/broadcast_tx_commit?tx=$(toHex $KEY=$VALUE)
echo $?
echo ""

# unexisting key
NOKEY="nokey"

###########################
# test using the abci-cli
Expand All @@ -40,12 +38,12 @@ if [[ $? != 0 ]]; then
fi
set -e

# we should not be able to look up an unexsisting key
RESPONSE=`abci-cli query \"$NOKEY\"`
# we should not be able to look up the value
RESPONSE=`abci-cli query \"$VALUE\"`
set +e
A=`echo $RESPONSE | grep $NOKEY`
A=`echo $RESPONSE | grep \"value: $VALUE\"`
if [[ $? == 0 ]]; then
echo "Found '$NOKEY' for $NOKEY when we should not have. Response:"
echo "Found '$VALUE' for $VALUE when we should not have. Response:"
echo "$RESPONSE"
exit 1
fi
Expand Down

0 comments on commit 8eac3bc

Please sign in to comment.