Skip to content

Commit

Permalink
dns test: switch to localhost
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Aug 23, 2018
1 parent 9a57949 commit c89102a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/sharness/t0236-cli-api-dns-resolve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ test_description="test dns resolution of api endpoint by cli"

test_init_ipfs

# this test uses the localtest.me domain which resolves to 127.0.0.1
# see http://readme.localtest.me/
# in case if failure, check A record of that domain
test_expect_success "can make http request against dns resolved nc server" '
nc -ld 5005 > nc_out &
NCPID=$!
go-sleep 0.5s && kill "$NCPID" &
ipfs cat /ipfs/Qmabcdef --api /dns4/localtest.me/tcp/5005 || true
ipfs cat /ipfs/Qmabcdef --api /dns4/localhost/tcp/5005 || true
'

test_expect_success "request was received by local nc server" '
Expand Down

0 comments on commit c89102a

Please sign in to comment.