Skip to content
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

sharness: Fix test typo causing an empty grep #643

Merged
merged 3 commits into from Jan 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions sharness/t0032-ctl-health.sh
Expand Up @@ -21,8 +21,8 @@ test_expect_success IPFS,CLUSTER "health metrics without metric name fails" '
'

test_expect_success IPFS,CLUSTER "list latest metrics logged by this peer" '
pid=`docker exec ipfs sh -c "ipfs id | jq .ID"`
ipfs-cluster-ctl health metrics freespace | grep -q "$pid: [0-9]* | Expire: .*T.*Z"
pid=`ipfs-cluster-ctl --enc=json id | jq -r ".id"`
ipfs-cluster-ctl health metrics freespace | grep -q -E "^$pid: [0-9]+ | Expire: .+T.+Z"
'

test_clean_ipfs
Expand Down