Skip to content

Commit

Permalink
test/sharness: extended circuit relay test
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
  • Loading branch information
vyzo committed Jul 28, 2017
1 parent aa874c9 commit cd92b47
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/sharness/t0182-circuit-relay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,23 @@ test_expect_success 'peers for B look good' '
test_cmp peers_exp peers_out
'

test_expect_success 'add an object in A' '
echo "hello relay" | ipfsi 0 add > peers_out
'

test_expect_success 'object ID' '
OBJID=$(cut -f3 -d " " peers_out)
'

test_expect_success 'cat the object in B' '
ipfsi 2 cat $OBJID > peers_out
'

test_expect_success 'output looks good' '
echo "hello relay" > peers_exp &&
test_cmp peers_exp peers_out
'

test_expect_success 'stop iptb' '
iptb stop
'
Expand Down

0 comments on commit cd92b47

Please sign in to comment.