Commit 1a6e96f0 authored by Marten Seemann's avatar Marten Seemann

disable flaky tests

parent aa45f9d6
...@@ -388,6 +388,7 @@ func TestValueSetInvalid(t *testing.T) { ...@@ -388,6 +388,7 @@ func TestValueSetInvalid(t *testing.T) {
} }
func TestContextShutDown(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()) ctx, cancel := context.WithCancel(context.Background())
defer cancel() defer cancel()
...@@ -412,6 +413,8 @@ func TestContextShutDown(t *testing.T) { ...@@ -412,6 +413,8 @@ func TestContextShutDown(t *testing.T) {
} }
func TestSearchValue(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()) ctx, cancel := context.WithCancel(context.Background())
defer cancel() defer cancel()
......
...@@ -136,6 +136,8 @@ func TestProvidersSerialization(t *testing.T) { ...@@ -136,6 +136,8 @@ func TestProvidersSerialization(t *testing.T) {
} }
func TestProvidesExpire(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 pval := ProvideValidity
cleanup := defaultCleanupInterval cleanup := defaultCleanupInterval
ProvideValidity = time.Second / 2 ProvideValidity = time.Second / 2
......
...@@ -15,6 +15,8 @@ import ( ...@@ -15,6 +15,8 @@ import (
) )
func TestSkipRefreshOnGapCpls(t *testing.T) { 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()) ctx, cancel := context.WithCancel(context.Background())
defer cancel() defer cancel()
local := test.RandPeerIDFatal(t) local := test.RandPeerIDFatal(t)
...@@ -39,8 +41,8 @@ func TestSkipRefreshOnGapCpls(t *testing.T) { ...@@ -39,8 +41,8 @@ func TestSkipRefreshOnGapCpls(t *testing.T) {
p, err := rt.GenRandPeerID(uint(u)) p, err := rt.GenRandPeerID(uint(u))
require.NoError(t, err) require.NoError(t, err)
b, err := rt.TryAddPeer(p, true, false) b, err := rt.TryAddPeer(p, true, false)
require.True(t, b)
require.NoError(t, err) require.NoError(t, err)
require.True(t, b)
return nil return nil
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment