diff --git a/command/agent/config_test.go b/command/agent/config_test.go index 917ecf1c0..e342b997b 100644 --- a/command/agent/config_test.go +++ b/command/agent/config_test.go @@ -318,9 +318,10 @@ func TestConfig_LoadConfigsFileOrder(t *testing.T) { } expected := []string{ - "test-resources/etcnomad/common.hcl", - "test-resources/etcnomad/server.json", - "test-resources/myconf", + // filepath.FromSlash changes these to backslash \ on Windows + filepath.FromSlash("test-resources/etcnomad/common.hcl"), + filepath.FromSlash("test-resources/etcnomad/server.json"), + filepath.FromSlash("test-resources/myconf"), } config := config1.Merge(config2)