1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 15:42:21 +08:00

t0060: fail if no nc

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder
2015-10-17 06:04:22 +02:00
parent 4de5eaad5f
commit c424b4d5ad

View File

@ -96,8 +96,12 @@ test_expect_success "ipfs help output looks good" '
test_fsh cat help.txt
'
# check transport is encrypted
# netcat (nc) is needed for the following test
test_expect_success "nc is available" '
type nc >/dev/null
'
# check transport is encrypted
test_expect_success "transport should be encrypted" '
nc -w 5 localhost 4001 >swarmnc &&
grep -q "AES-256,AES-128" swarmnc &&