mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Use minimum OS specific path.
This change ensures LoadConfig and LoadConfigDir report consistent paths to files and those paths use the appropriate path separator for the target OS. Note that LoadConfigDir constructs paths with filepath.Join, which calls filepath.Clean, which calls filepath.FromSlash.
This commit is contained in:
@@ -327,7 +327,7 @@ func TestConfig_LoadConfigsFileOrder(t *testing.T) {
|
||||
config := config1.Merge(config2)
|
||||
|
||||
if !reflect.DeepEqual(config.Files, expected) {
|
||||
t.Errorf("Loaded configs don't match\nExpected\n%+vGot\n%+v\n",
|
||||
t.Errorf("Loaded configs don't match\nwant: %+v\n got: %+v\n",
|
||||
expected, config.Files)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user