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:
parent
2783186d1f
commit
6b4b1bcebb
|
@ -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" '
|
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"
|
ipfs-cluster-ctl health metrics freespace | grep -q "$pid: [0-9]* | Expire: .*T.*Z"
|
||||||
'
|
'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user