Update sharness/t0032-ctl-health.sh

Fix the pid extraction in test.

Co-Authored-By: hsanjuan <hsanjuan@users.noreply.github.com>

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
Kishan Sagathiya 2019-01-14 12:06:30 +01:00 committed by Hector Sanjuan
parent 2783186d1f
commit 6b4b1bcebb

View File

@ -21,7 +21,7 @@ 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"
pid=`docker exec ipfs sh -c "ipfs id" | jq ".ID"`
ipfs-cluster-ctl health metrics freespace | grep -q "$pid: [0-9]* | Expire: .*T.*Z"
'