Skip to content

Commit

Permalink
add test for /p2p addresses
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Jun 27, 2018
1 parent 3eba14a commit 780f110
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/sharness/t0140-swarm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ test_expect_success "connect work without specifying a transport address" '
[ $(ipfsi 0 swarm peers | wc -l) -eq 1 ]
'

test_expect_success "/p2p addresses work" '
[ $(ipfsi 0 swarm peers | wc -l) -eq 1 ] &&
ipfsi 0 swarm disconnect "/p2p/$(iptb get id 1)" &&
[ $(ipfsi 0 swarm peers | wc -l) -eq 0 ] &&
ipfsi 0 swarm connect "/p2p/$(iptb get id 1)" &&
[ $(ipfsi 0 swarm peers | wc -l) -eq 1 ]
'

test_expect_success "stopping cluster" '
iptb stop
'
Expand Down

0 comments on commit 780f110

Please sign in to comment.