Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
7da9e56e
Unverified
Commit
7da9e56e
authored
Mar 04, 2021
by
acud
Committed by
GitHub
Mar 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable dns tests on windows (#1381)
parent
9a885234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
static_resolver_test.go
pkg/p2p/libp2p/static_resolver_test.go
+13
-14
No files found.
pkg/p2p/libp2p/static_resolver_test.go
View file @
7da9e56e
...
@@ -16,20 +16,6 @@ import (
...
@@ -16,20 +16,6 @@ import (
)
)
func
TestStaticAddressResolver
(
t
*
testing
.
T
)
{
func
TestStaticAddressResolver
(
t
*
testing
.
T
)
{
srv
,
_
:=
mockdns
.
NewServer
(
map
[
string
]
mockdns
.
Zone
{
"ipv4.com."
:
{
A
:
[]
string
{
"192.168.1.34"
},
},
"ipv4and6.com."
:
{
A
:
[]
string
{
"192.168.1.34"
},
AAAA
:
[]
string
{
"2001:db8::8a2e:370:1111"
},
},
},
false
)
defer
srv
.
Close
()
srv
.
PatchNet
(
net
.
DefaultResolver
)
defer
mockdns
.
UnpatchNet
(
net
.
DefaultResolver
)
for
_
,
tc
:=
range
[]
struct
{
for
_
,
tc
:=
range
[]
struct
{
name
string
name
string
natAddr
string
natAddr
string
...
@@ -106,6 +92,19 @@ func TestStaticAddressResolver(t *testing.T) {
...
@@ -106,6 +92,19 @@ func TestStaticAddressResolver(t *testing.T) {
}
}
}
}
t
.
Run
(
tc
.
name
,
func
(
t
*
testing
.
T
)
{
t
.
Run
(
tc
.
name
,
func
(
t
*
testing
.
T
)
{
srv
,
_
:=
mockdns
.
NewServer
(
map
[
string
]
mockdns
.
Zone
{
"ipv4.com."
:
{
A
:
[]
string
{
"192.168.1.34"
},
},
"ipv4and6.com."
:
{
A
:
[]
string
{
"192.168.1.34"
},
AAAA
:
[]
string
{
"2001:db8::8a2e:370:1111"
},
},
},
false
)
defer
srv
.
Close
()
srv
.
PatchNet
(
net
.
DefaultResolver
)
defer
mockdns
.
UnpatchNet
(
net
.
DefaultResolver
)
r
,
err
:=
libp2p
.
NewStaticAddressResolver
(
tc
.
natAddr
)
r
,
err
:=
libp2p
.
NewStaticAddressResolver
(
tc
.
natAddr
)
if
err
!=
nil
{
if
err
!=
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