@cryptotaxi247 / kubo / commits / e9edd2d88

use nc -w instead of -q because osx is slow

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Apr 7, 2016 at 13:41 UTC e9edd2d884df54cad8926a4b5cb52115241c2fba
2 files changed +2 -2
test/sharness/t0060-daemon.sh
+1 -1
@@ -81,7 +81,7 @@ test_expect_success "nc is available" '
81
82 # check transport is encrypted
83 test_expect_success "transport should be encrypted" '
84 - nc -q1 localhost $SWARM_PORT > swarmnc < ../t0060-data/mss-ls &&
84 + nc -w 1 localhost $SWARM_PORT > swarmnc < ../t0060-data/mss-ls &&
85 grep -q "/secio" swarmnc &&
86 test_must_fail grep -q "/plaintext/1.0.0" swarmnc ||
87 test_fsh cat swarmnc
test/sharness/t0061-daemon-opts.sh
+1 -1
@@ -27,7 +27,7 @@ test_expect_success 'api gateway should be unrestricted' '
27
28 # Odd. this fails here, but the inverse works on t0060-daemon.
29 test_expect_success 'transport should be unencrypted' '
30 - nc -q 1 localhost $SWARM_PORT > swarmnc < ../t0060-data/mss-ls &&
30 + nc -w 1 localhost $SWARM_PORT > swarmnc < ../t0060-data/mss-ls &&
31 test_must_fail grep -q "/secio" swarmnc &&
32 grep -q "/plaintext" swarmnc ||
33 test_fsh cat swarmnc