Fix config test
This commit is contained in:
parent
4bee6840dc
commit
b9a00e1bdc
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ var expCfg = &Config{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Relay: []Relay{
|
Relay: []Relay{
|
||||||
Relay{
|
{
|
||||||
URL: "http://relay",
|
URL: "http://relay",
|
||||||
APIKey: "secret",
|
APIKey: "secret",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
@ -71,7 +71,7 @@ var expCfg = &Config{
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestConfigParse(t *testing.T) {
|
func TestConfigParse(t *testing.T) {
|
||||||
c := &Configuration{configPath: "testdata/testconfig.yaml"}
|
c := &Configuration{configPath: common.PtrTo("testdata/testconfig.yaml")}
|
||||||
|
|
||||||
err := c.read()
|
err := c.read()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
Loading…
Reference in a new issue