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
f954294e
Unverified
Commit
f954294e
authored
Mar 10, 2021
by
acud
Committed by
GitHub
Mar 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libp2p: skip static resolver tests on windows completely (#1408)
parent
740a51d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
static_resolver_test.go
pkg/p2p/libp2p/static_resolver_test.go
+4
-9
No files found.
pkg/p2p/libp2p/static_resolver_test.go
View file @
f954294e
...
...
@@ -7,7 +7,6 @@ package libp2p_test
import
(
"net"
"runtime"
"strings"
"testing"
"github.com/ethersphere/bee/pkg/p2p/libp2p"
...
...
@@ -16,6 +15,10 @@ import (
)
func
TestStaticAddressResolver
(
t
*
testing
.
T
)
{
if
runtime
.
GOOS
==
"windows"
||
runtime
.
GOOS
==
"plan9"
{
t
.
Skipf
(
"skipped all dns resolver tests on %v"
,
runtime
.
GOOS
)
}
for
_
,
tc
:=
range
[]
struct
{
name
string
natAddr
string
...
...
@@ -83,14 +86,6 @@ func TestStaticAddressResolver(t *testing.T) {
want
:
"/dns/ipv4and6.com/tcp/30777/p2p/16Uiu2HAkyyGKpjBiCkVqCKoJa6RzzZw9Nr7hGogsMPcdad1KyMmd"
,
},
}
{
if
strings
.
Contains
(
tc
.
name
,
"dns"
)
{
// The windows and plan9 implementation of the resolver does not use
// the Dial function.
switch
runtime
.
GOOS
{
case
"windows"
,
"plan9"
:
t
.
Skipf
(
"skipped all dns resolver tests on %v"
,
runtime
.
GOOS
)
}
}
t
.
Run
(
tc
.
name
,
func
(
t
*
testing
.
T
)
{
srv
,
err
:=
mockdns
.
NewServer
(
map
[
string
]
mockdns
.
Zone
{
"ipv4.com."
:
{
...
...
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