diff --git a/test/sharness/t0062-daemon-api.sh b/test/sharness/t0062-daemon-api.sh index 8ba8faeb5..5cbdc460f 100755 --- a/test/sharness/t0062-daemon-api.sh +++ b/test/sharness/t0062-daemon-api.sh @@ -19,14 +19,14 @@ test_expect_success "config setup" ' ' test_client() { - printf "$peerid" >expected - ipfs "$@" id -f="" >actual + printf "$peerid" >expected && + ipfs "$@" id -f="" >actual && test_cmp expected actual } test_client_must_fail() { - echo "Error: api not running" >expected_err - test_must_fail ipfs "$@" id -f="" >actual 2>actual_err + echo "Error: api not running" >expected_err && + test_must_fail ipfs "$@" id -f="" >actual 2>actual_err && test_cmp expected_err actual_err }