Skip to content

Commit

Permalink
fix panic when overriding config settings of a test that has no config
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Mar 9, 2024
1 parent a24199a commit 9a891e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/coordinator/test/descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ func LoadExternalTestConfig(ctx context.Context, globalVars types.Variables, ext
}

decoder := yaml.NewDecoder(reader)
testConfig := &types.TestConfig{}
testConfig := &types.TestConfig{
Config: map[string]interface{}{},
ConfigVars: map[string]string{},
}
testVars := vars.NewVariables(nil)

err := decoder.Decode(testConfig)
Expand Down

0 comments on commit 9a891e8

Please sign in to comment.