Skip to content

Commit

Permalink
Fix config test
Browse files Browse the repository at this point in the history
  • Loading branch information
ykadowak committed Mar 14, 2024
1 parent d209db0 commit 1b91f24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ func TestRead(t *testing.T) {
want: &map[string]interface{}{
"version": "v1.0.0",
"time_zone": "UTC",
"logging": map[interface{}]interface{}{
"logging": map[string]interface{}{
"logger": "glg",
},
},
Expand Down Expand Up @@ -826,7 +826,7 @@ func TestRead(t *testing.T) {
},
want: want{
want: cfg,
err: errors.New("yaml: unmarshal errors:\n line 1: cannot unmarshal !!str `timezone` into config.GlobalConfig"),
err: errors.New("while decoding JSON: json: cannot unmarshal string into Go value of type config.GlobalConfig"),
},
}
}(),
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/core/ngt/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func TestNewConfig(t *testing.T) {
},
want: want{
wantCfg: nil,
err: io.EOF,
err: errors.New("component config is invalid"),
},
}
}(),
Expand Down

0 comments on commit 1b91f24

Please sign in to comment.