From d47c818cb0b8803f62e956940533e82070ff2cf5 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Fri, 2 Jun 2017 15:48:14 +0900 Subject: server_test: stop listening Listening on well-known port require the root privileges. This patch stop listening to avoid that because this test doesn't need to accept a peer. Signed-off-by: IWASE Yusuke --- server/server_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'server/server_test.go') diff --git a/server/server_test.go b/server/server_test.go index f5cbe8f9..26f7edd0 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -35,6 +35,7 @@ func TestModPolicyAssign(t *testing.T) { Config: config.GlobalConfig{ As: 1, RouterId: "1.1.1.1", + Port: -1, }, }) assert.Nil(err) -- cgit v1.2.3