summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-06-02 16:12:55 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-06 13:11:21 +0900
commitcb1a3753dcea868b331fb20887922b04759e8107 (patch)
tree94879eb718cfb116e8407362d5910203c1864789
parentda94f98e394c5f6a78871f3d51387777ac3c9235 (diff)
server_test: Add a sleep for stability
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
-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{