Skip to content

Commit 1a6e96f

Browse files
disable flaky tests
1 parent aa45f9d commit 1a6e96f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

dht_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ func TestValueSetInvalid(t *testing.T) {
388388
}
389389

390390
func TestContextShutDown(t *testing.T) {
391+
t.Skip("This test is flaky, see https://github.com/libp2p/go-libp2p-kad-dht/issues/724.")
391392
ctx, cancel := context.WithCancel(context.Background())
392393
defer cancel()
393394

@@ -412,6 +413,8 @@ func TestContextShutDown(t *testing.T) {
412413
}
413414

414415
func TestSearchValue(t *testing.T) {
416+
t.Skip("This test is flaky, see https://github.com/libp2p/go-libp2p-kad-dht/issues/723.")
417+
415418
ctx, cancel := context.WithCancel(context.Background())
416419
defer cancel()
417420

providers/providers_manager_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ func TestProvidersSerialization(t *testing.T) {
136136
}
137137

138138
func TestProvidesExpire(t *testing.T) {
139+
t.Skip("This test is flaky, see https://github.com/libp2p/go-libp2p-kad-dht/issues/725.")
140+
139141
pval := ProvideValidity
140142
cleanup := defaultCleanupInterval
141143
ProvideValidity = time.Second / 2

rtrefresh/rt_refresh_manager_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515
)
1616

1717
func TestSkipRefreshOnGapCpls(t *testing.T) {
18+
t.Skip("This test is flaky, see https://github.com/libp2p/go-libp2p-kad-dht/issues/722.")
19+
1820
ctx, cancel := context.WithCancel(context.Background())
1921
defer cancel()
2022
local := test.RandPeerIDFatal(t)
@@ -39,8 +41,8 @@ func TestSkipRefreshOnGapCpls(t *testing.T) {
3941
p, err := rt.GenRandPeerID(uint(u))
4042
require.NoError(t, err)
4143
b, err := rt.TryAddPeer(p, true, false)
42-
require.True(t, b)
4344
require.NoError(t, err)
45+
require.True(t, b)
4446
return nil
4547
}
4648
}

0 commit comments

Comments
 (0)