Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-namesys
Commits
cbcc19cb
Unverified
Commit
cbcc19cb
authored
Mar 30, 2021
by
Nick Johnson
Committed by
GitHub
Mar 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests to use eth.domains
parent
64c43982
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dns_test.go
dns_test.go
+2
-2
No files found.
dns_test.go
View file @
cbcc19cb
...
@@ -126,7 +126,7 @@ func newMockDNS() *mockDNS {
...
@@ -126,7 +126,7 @@ func newMockDNS() *mockDNS {
"fqdn.example.com."
:
{
"fqdn.example.com."
:
{
"dnslink=/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr"
,
"dnslink=/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr"
,
},
},
"www.wealdtech.eth.
l
in
k
."
:
{
"www.wealdtech.eth.
doma
in
s
."
:
{
"dnslink=/ipns/ipfs.example.com"
,
"dnslink=/ipns/ipfs.example.com"
,
},
},
},
},
...
@@ -168,5 +168,5 @@ func TestDNSResolution(t *testing.T) {
...
@@ -168,5 +168,5 @@ func TestDNSResolution(t *testing.T) {
testResolution
(
t
,
r
,
"fqdn.example.com."
,
opts
.
DefaultDepthLimit
,
"/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr"
,
nil
)
testResolution
(
t
,
r
,
"fqdn.example.com."
,
opts
.
DefaultDepthLimit
,
"/ipfs/QmYvMB9yrsSf7RKBghkfwmHJkzJhW2ZgVwq3LxBXXPasFr"
,
nil
)
testResolution
(
t
,
r
,
"www.wealdtech.eth"
,
1
,
"/ipns/ipfs.example.com"
,
ErrResolveRecursion
)
testResolution
(
t
,
r
,
"www.wealdtech.eth"
,
1
,
"/ipns/ipfs.example.com"
,
ErrResolveRecursion
)
testResolution
(
t
,
r
,
"www.wealdtech.eth"
,
2
,
"/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD"
,
nil
)
testResolution
(
t
,
r
,
"www.wealdtech.eth"
,
2
,
"/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD"
,
nil
)
testResolution
(
t
,
r
,
"www.wealdtech.eth.
l
in
k
"
,
2
,
"/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD"
,
nil
)
testResolution
(
t
,
r
,
"www.wealdtech.eth.
doma
in
s
"
,
2
,
"/ipfs/QmY3hE8xgFCjGcz6PHgnvJz5HZi1BaKRfPkn1ghZUcYMjD"
,
nil
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment