提交 c89102a0 作者: Steven Allen

dns test: switch to localhost

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 9a579499
......@@ -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" '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论