@cryptotaxi247 / kubo / commits / 0ada88637

sharness: use test profile

This: * Disables mdns and fixes #4098 (iptb nodes already have mdns disabled by default). * Only listens on localhost (although iptb nodes still listen on all). License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Jul 28, 2017 at 13:21 UTC 0ada88637b3db3c7bc539542d757880c0df790c1
1 file changed +3 -9
test/sharness/lib/test-lib.sh
+3 -9
@@ -141,19 +141,13 @@ test_init_ipfs() {
141
142 test_expect_success "ipfs init succeeds" '
143 export IPFS_PATH="$(pwd)/.ipfs" &&
144 - ipfs init -b=1024 > /dev/null
144 + ipfs init --profile=test -b=1024 > /dev/null
145 '
146
147 - test_expect_success "prepare config -- mounting and bootstrap rm" '
147 + test_expect_success "prepare config -- mounting" '
148 mkdir mountdir ipfs ipns &&
149 test_config_set Mounts.IPFS "$(pwd)/ipfs" &&
150 - test_config_set Mounts.IPNS "$(pwd)/ipns" &&
151 - test_config_set Addresses.API "/ip4/127.0.0.1/tcp/0" &&
152 - test_config_set Addresses.Gateway "/ip4/0.0.0.0/tcp/0" &&
153 - test_config_set --json Addresses.Swarm "[
154 - \"/ip4/0.0.0.0/tcp/0\"
155 -]" &&
156 - ipfs bootstrap rm --all ||
150 + test_config_set Mounts.IPNS "$(pwd)/ipns" ||
151 test_fsh cat "\"$IPFS_PATH/config\""
152 '
153