Skip to content
Snippets Groups Projects
Commit 3dcc38d5 authored by Abubakr-Sadik Nii Nai Davis's avatar Abubakr-Sadik Nii Nai Davis
Browse files

Fix issue with util test.

parent 592dc819
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ func getConfigFiles(v *viper.Viper, t string) map[string]string { ...@@ -129,7 +129,7 @@ func getConfigFiles(v *viper.Viper, t string) map[string]string {
} }
// See if any of the candidate config files exist // See if any of the candidate config files exist
conf := findConfigFile(s.GetStringSlice(t)) conf := findConfigFile(s.GetStringSlice(t + "s"))
if conf == "" { if conf == "" {
if s.IsSet("default" + t) { if s.IsSet("default" + t) {
conf = s.GetString("default" + t) conf = s.GetString("default" + t)
......
...@@ -282,7 +282,7 @@ func TestGetConfigFiles(t *testing.T) { ...@@ -282,7 +282,7 @@ func TestGetConfigFiles(t *testing.T) {
e = c.statResults e = c.statResults
eIndex = 0 eIndex = 0
m := getConfigFiles(v) m := getConfigFiles(v, "conf")
if !reflect.DeepEqual(m, c.exp) { if !reflect.DeepEqual(m, c.exp) {
t.Fatalf("Got %v\nExpected %v", m, c.exp) t.Fatalf("Got %v\nExpected %v", m, c.exp)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment