summaryrefslogtreecommitdiffhomepage
path: root/server/server_test.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-06-02 15:48:14 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-06 13:11:19 +0900
commitd47c818cb0b8803f62e956940533e82070ff2cf5 (patch)
tree3e930b695472d5201fa5fe30b26d64a7306e2724 /server/server_test.go
parentb79c5f652f939c869806d986a8a20e6cb95e4659 (diff)
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 <iwase.yusuke0@gmail.com>
Diffstat (limited to 'server/server_test.go')
-rw-r--r--server/server_test.go1
1 files changed, 1 insertions, 0 deletions
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)