Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
koho committed Mar 3, 2024
1 parent 5bbcef1 commit 9fe0f86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/config/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestUnmarshalAppConfFromIni(t *testing.T) {
expected := App{
Password: "abcde",
Defaults: ClientCommon{
ServerPort: "7000",
ServerPort: 7000,
LogLevel: "info",
LogMaxDays: 5,
Protocol: "kcp",
Expand Down
3 changes: 2 additions & 1 deletion pkg/config/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ func TestUnmarshalClientConfFromIni(t *testing.T) {
meta_2 = value
`
expected := NewDefaultClientConfig()
expected.LegacyFormat = true
expected.ServerAddress = "example.com"
expected.ServerPort = "7001"
expected.ServerPort = 7001
expected.Token = "123456"
expected.ManualStart = true
expected.Metas = map[string]string{"1": "value"}
Expand Down

0 comments on commit 9fe0f86

Please sign in to comment.