From b489d76280ce95d94ad1d44a34f9532f77850c5e Mon Sep 17 00:00:00 2001 From: Ting Date: Fri, 7 Jun 2024 18:50:15 +0800 Subject: [PATCH] fix lint --- server/egovernor/config_test.go | 7 ++++--- server/egovernor/container_test.go | 10 ++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/server/egovernor/config_test.go b/server/egovernor/config_test.go index 9006d4b7..effb4c73 100644 --- a/server/egovernor/config_test.go +++ b/server/egovernor/config_test.go @@ -10,9 +10,10 @@ import ( func TestDefaultConfig(t *testing.T) { in := &Config{ - Host: eflag.String("host"), - Network: "tcp4", - Port: 9003, + Host: eflag.String("host"), + Network: "tcp4", + Port: 9003, + ConnTcpMetricPorts: []uint64{6379, 3306, 8635, 27017, 9092}, } out := DefaultConfig() assert.Equal(t, in, out) diff --git a/server/egovernor/container_test.go b/server/egovernor/container_test.go index c676d97c..20133d1d 100644 --- a/server/egovernor/container_test.go +++ b/server/egovernor/container_test.go @@ -33,10 +33,12 @@ Network = "tcp4" l := Load("test") c := &Container{ config: &Config{ - Host: "172.16.21.157", - Port: 8080, - EnableLocalMainIP: true, - Network: "tcp4", + Host: "172.16.21.157", + Port: 8080, + EnableLocalMainIP: true, + Network: "tcp4", + EnableConnTcpMetric: false, + ConnTcpMetricPorts: []uint64{6379, 3306, 8635, 27017, 9092}, }, name: "test", logger: DefaultContainer().logger.With(elog.FieldComponentName("test")),