1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

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

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
Jeromy
2016-04-07 13:41:42 -07:00
parent 42455d27b3
commit e9edd2d884
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ test_expect_success "nc is available" '
# check transport is encrypted
test_expect_success "transport should be encrypted" '
nc -q1 localhost $SWARM_PORT > swarmnc < ../t0060-data/mss-ls &&
nc -w 1 localhost $SWARM_PORT > swarmnc < ../t0060-data/mss-ls &&
grep -q "/secio" swarmnc &&
test_must_fail grep -q "/plaintext/1.0.0" swarmnc ||
test_fsh cat swarmnc

View File

@ -27,7 +27,7 @@ test_expect_success 'api gateway should be unrestricted' '
# Odd. this fails here, but the inverse works on t0060-daemon.
test_expect_success 'transport should be unencrypted' '
nc -q 1 localhost $SWARM_PORT > swarmnc < ../t0060-data/mss-ls &&
nc -w 1 localhost $SWARM_PORT > swarmnc < ../t0060-data/mss-ls &&
test_must_fail grep -q "/secio" swarmnc &&
grep -q "/plaintext" swarmnc ||
test_fsh cat swarmnc