diff --git a/fabric-ca/scripts/run-fabric.sh b/fabric-ca/scripts/run-fabric.sh index b41b779714..a4ab0f8062 100755 --- a/fabric-ca/scripts/run-fabric.sh +++ b/fabric-ca/scripts/run-fabric.sh @@ -174,7 +174,7 @@ function queryAsRevokedUser { sleep 1 peer chaincode query -C $CHANNEL_NAME -n mycc -c '{"Args":["query","a"]}' >& log.txt if [ $? -ne 0 ]; then - err=$(cat log.txt | grep "The certificate has been revoked") + err=$(cat log.txt | grep "access denied") if [ "$err" != "" ]; then logr "Expected error occurred when the revoked user '$USER_NAME' queried the chaincode in the channel '$CHANNEL_NAME'" set -e