We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bae8d3 commit ca17158Copy full SHA for ca17158
config/config_test.go
@@ -40,7 +40,10 @@ func TestNewConfigWithWrongConfigPath(t *testing.T) {
40
cfg, err := New()
41
require.NotNil(t, err)
42
require.Equal(t, Config{}, cfg)
43
- require.Contains(t, err.Error(), "open wrong_path: no such file or directory")
+ if strings.Contains(err.Error(),
44
+ "open wrong_path: The system cannot find the file specified") == false { // for Windows
45
+ require.Contains(t, err.Error(), "open wrong_path: no such file or directory")
46
+ }
47
}
48
49
func TestNewConfigWithOverride(t *testing.T) {
0 commit comments