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
p2p
go-p2p-kad-dht
Commits
e2d2246d
Commit
e2d2246d
authored
May 05, 2020
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: use server-mode everywhere
parent
a7fb7945
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ext_test.go
ext_test.go
+4
-4
No files found.
ext_test.go
View file @
e2d2246d
...
...
@@ -33,7 +33,7 @@ func TestHungRequest(t *testing.T) {
}
hosts
:=
mn
.
Hosts
()
os
:=
[]
Option
{
testPrefix
,
DisableAutoRefresh
()}
os
:=
[]
Option
{
testPrefix
,
DisableAutoRefresh
()
,
Mode
(
ModeServer
)
}
d
,
err
:=
New
(
ctx
,
hosts
[
0
],
os
...
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
@@ -217,7 +217,7 @@ func TestNotFound(t *testing.T) {
}
hosts
:=
mn
.
Hosts
()
os
:=
[]
Option
{
testPrefix
,
DisableAutoRefresh
()}
os
:=
[]
Option
{
testPrefix
,
DisableAutoRefresh
()
,
Mode
(
ModeServer
)
}
d
,
err
:=
New
(
ctx
,
hosts
[
0
],
os
...
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
@@ -299,7 +299,7 @@ func TestLessThanKResponses(t *testing.T) {
}
hosts
:=
mn
.
Hosts
()
os
:=
[]
Option
{
testPrefix
,
DisableAutoRefresh
()}
os
:=
[]
Option
{
testPrefix
,
DisableAutoRefresh
()
,
Mode
(
ModeServer
)
}
d
,
err
:=
New
(
ctx
,
hosts
[
0
],
os
...
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
@@ -371,7 +371,7 @@ func TestMultipleQueries(t *testing.T) {
t
.
Fatal
(
err
)
}
hosts
:=
mn
.
Hosts
()
os
:=
[]
Option
{
testPrefix
,
DisableAutoRefresh
()}
os
:=
[]
Option
{
testPrefix
,
DisableAutoRefresh
()
,
Mode
(
ModeServer
)
}
d
,
err
:=
New
(
ctx
,
hosts
[
0
],
os
...
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
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