Skip to content

Commit

Permalink
disable flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jun 15, 2021
1 parent 0cbe032 commit 6a933c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dht_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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()

Expand Down
4 changes: 3 additions & 1 deletion rtrefresh/rt_refresh_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
}
}
Expand Down

0 comments on commit 6a933c0

Please sign in to comment.