summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/server_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/server_test.go b/server/server_test.go
index 26f7edd0..8c1c8582 100644
--- a/server/server_test.go
+++ b/server/server_test.go
@@ -170,6 +170,9 @@ func TestNumGoroutineWithAddDeleteNeighbor(t *testing.T) {
assert.Nil(err)
defer s.Stop()
+ // wait a few seconds to avoid taking effect from other test cases.
+ time.Sleep(time.Second * 5)
+
num := runtime.NumGoroutine()
n := &config.Neighbor{