dns test: switch to localhost
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Aug 23, 2018 at 01:13 UTC
c89102a01c6cc0c8fef0317062770e5075a5fc7e
1 file changed
+1
-4
test/sharness/t0236-cli-api-dns-resolve.sh
+1
-4
@@ -10,14 +10,11 @@ test_description="test dns resolution of api endpoint by cli"
10
11
test_init_ipfs
12
13
-# this test uses the localtest.me domain which resolves to 127.0.0.1
14
-# see http://readme.localtest.me/
15
-# in case if failure, check A record of that domain
13
test_expect_success "can make http request against dns resolved nc server" '
14
nc -ld 5005 > nc_out &
15
NCPID=$!
16
go-sleep 0.5s && kill "$NCPID" &
20
- ipfs cat /ipfs/Qmabcdef --api /dns4/localtest.me/tcp/5005 || true
17
+ ipfs cat /ipfs/Qmabcdef --api /dns4/localhost/tcp/5005 || true
18
'
19
20
test_expect_success "request was received by local nc server" '