@cryptotaxi247 / kubo / commits / 2147f5024

test(sharness): fix circuit tests

Steven Allen committed Sep 27, 2019 at 15:50 UTC 2147f50240861b75b8d1e09d33e2b2ac64543378
1 file changed +4 -6
test/sharness/t0182-circuit-relay.sh
+4 -6
@@ -53,15 +53,13 @@ test_expect_success 'output looks good' '
53 '
54
55 test_expect_success 'peers for A look good' '
56 - ipfsi 0 swarm peers | grep p2p-circuit > peers_out &&
57 - echo "/ipfs/$PEERID_1/p2p-circuit/ipfs/$PEERID_2" > peers_exp &&
58 - test_cmp peers_exp peers_out
56 + ipfsi 0 swarm peers > peers_out &&
57 + test_should_contain "/ipfs/$PEERID_1/p2p-circuit/ipfs/$PEERID_2$" peers_out
58 '
59
60 test_expect_success 'peers for B look good' '
62 - ipfsi 2 swarm peers | grep p2p-circuit > peers_out &&
63 - echo "/ipfs/$PEERID_1/p2p-circuit/ipfs/$PEERID_0" > peers_exp &&
64 - test_cmp peers_exp peers_out
61 + ipfsi 2 swarm peers > peers_out &&
62 + test_should_contain "/ipfs/$PEERID_1/p2p-circuit/ipfs/$PEERID_0$" peers_out
63 '
64
65 test_expect_success 'add an object in A' '