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
1a6e96f0
Commit
1a6e96f0
authored
Jun 14, 2021
by
Marten Seemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable flaky tests
parent
aa45f9d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
dht_test.go
dht_test.go
+3
-0
providers/providers_manager_test.go
providers/providers_manager_test.go
+2
-0
rtrefresh/rt_refresh_manager_test.go
rtrefresh/rt_refresh_manager_test.go
+3
-1
No files found.
dht_test.go
View file @
1a6e96f0
...
...
@@ -388,6 +388,7 @@ func TestValueSetInvalid(t *testing.T) {
}
func TestContextShutDown(t *testing.T) {
t.Skip("This test is flaky, see https://github.com/libp2p/go-libp2p-kad-dht/issues/724.")
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
...
...
@@ -412,6 +413,8 @@ func TestContextShutDown(t *testing.T) {
}
func TestSearchValue(t *testing.T) {
t.Skip("This test is flaky, see https://github.com/libp2p/go-libp2p-kad-dht/issues/723.")
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
...
...
providers/providers_manager_test.go
View file @
1a6e96f0
...
...
@@ -136,6 +136,8 @@ func TestProvidersSerialization(t *testing.T) {
}
func
TestProvidesExpire
(
t
*
testing
.
T
)
{
t
.
Skip
(
"This test is flaky, see https://github.com/libp2p/go-libp2p-kad-dht/issues/725."
)
pval
:=
ProvideValidity
cleanup
:=
defaultCleanupInterval
ProvideValidity
=
time
.
Second
/
2
...
...
rtrefresh/rt_refresh_manager_test.go
View file @
1a6e96f0
...
...
@@ -15,6 +15,8 @@ import (
)
func
TestSkipRefreshOnGapCpls
(
t
*
testing
.
T
)
{
t
.
Skip
(
"This test is flaky, see https://github.com/libp2p/go-libp2p-kad-dht/issues/722."
)
ctx
,
cancel
:=
context
.
WithCancel
(
context
.
Background
())
defer
cancel
()
local
:=
test
.
RandPeerIDFatal
(
t
)
...
...
@@ -39,8 +41,8 @@ func TestSkipRefreshOnGapCpls(t *testing.T) {
p
,
err
:=
rt
.
GenRandPeerID
(
uint
(
u
))
require
.
NoError
(
t
,
err
)
b
,
err
:=
rt
.
TryAddPeer
(
p
,
true
,
false
)
require
.
True
(
t
,
b
)
require
.
NoError
(
t
,
err
)
require
.
True
(
t
,
b
)
return
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