Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ting authored and Ting committed Jun 7, 2024
1 parent 3c64add commit b489d76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions server/egovernor/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 6 additions & 4 deletions server/egovernor/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down

0 comments on commit b489d76

Please sign in to comment.