From c424b4d5ad7da2ccca875f30855151363f758f7c Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sat, 17 Oct 2015 06:04:22 +0200 Subject: [PATCH] t0060: fail if no nc License: MIT Signed-off-by: Christian Couder --- test/sharness/t0060-daemon.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/sharness/t0060-daemon.sh b/test/sharness/t0060-daemon.sh index 44bb87515..d2ed1f116 100755 --- a/test/sharness/t0060-daemon.sh +++ b/test/sharness/t0060-daemon.sh @@ -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 &&