@cryptotaxi247 / kubo / commits / 86c30d6b5

test(sharness): ensure addresses end in p2p addr

Steven Allen committed Jun 2, 2020 at 09:26 UTC 86c30d6b5913519c442163572d42ae44fb659fe3
1 file changed +8
test/sharness/t0140-swarm.sh
+8
@@ -128,12 +128,20 @@ test_expect_success "ipfs id is consistent for node 0" '
128 ipfsi 0 id > 0see0 &&
129 test_cmp 1see0 0see0
130 '
131 +
132 test_expect_success "ipfs id is consistent for node 1" '
133 ipfsi 0 id "$(iptb attr get 1 id)" > 0see1 &&
134 ipfsi 1 id > 1see1 &&
135 test_cmp 0see1 1see1
136 '
137
138 +test_expect_success "addresses contain /p2p/..." '
139 + test_should_contain "/p2p/$(iptb attr get 1 id)\"" 0see1 &&
140 + test_should_contain "/p2p/$(iptb attr get 1 id)\"" 1see1 &&
141 + test_should_contain "/p2p/$(iptb attr get 0 id)\"" 1see0 &&
142 + test_should_contain "/p2p/$(iptb attr get 0 id)\"" 0see0
143 +'
144 +
145 test_expect_success "stopping cluster" '
146 iptb stop
147 '