Skip to content

Commit

Permalink
Merge pull request #643 from ipfs/fix/sharness-jq-typo
Browse files Browse the repository at this point in the history
sharness: Fix test typo causing an empty grep
  • Loading branch information
hsanjuan committed Jan 14, 2019
2 parents d33b274 + 9685c08 commit 04cd9a5
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 04cd9a5

Please sign in to comment.