Skip to content

Commit 9dd2795

Browse files
committed
..
1 parent 049afc1 commit 9dd2795

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libs/databrickscfg/profiles_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package databrickscfg
22

33
import (
44
"context"
5+
"os"
6+
"strings"
57
"testing"
68

79
"github.com/databricks/cli/libs/env"
@@ -32,7 +34,8 @@ func TestLoadProfilesReturnsHomedirAsTilde(t *testing.T) {
3234
ctx = env.WithUserHomeDir(ctx, "testdata/sample-home")
3335
file, err := Get(ctx)
3436
require.NoError(t, err)
35-
assert.Equal(t, "testdata/sample-home/.databrickscfg", file.Path())
37+
path := strings.ReplaceAll("testdata/sample-home/.databrickscfg", "/", string(os.PathSeparator))
38+
assert.Equal(t, path, file.Path())
3639
}
3740

3841
func TestLoadProfilesMatchWorkspace(t *testing.T) {

0 commit comments

Comments
 (0)