Skip to content

Commit

Permalink
Skip test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Nov 7, 2024
1 parent c8382b6 commit 1ab0a59
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bundle/config/mutator/configure_wsfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package mutator_test

import (
"context"
"runtime"
"testing"

"github.com/databricks/cli/bundle"
Expand All @@ -14,9 +15,14 @@ import (
)

func mockBundleForConfigureWSFS(t *testing.T, syncRootPath string) *bundle.Bundle {
// The native path of the sync root on Windows will never match the /Workspace prefix,
// so the test case for nominal behavior will always fail.
if runtime.GOOS == "windows" {
t.Skip("this test is not applicable on Windows")
}

b := &bundle.Bundle{
SyncRootPath: syncRootPath,
SyncRoot: vfs.MustNew(syncRootPath),
SyncRoot: vfs.MustNew(syncRootPath),
}

w := mocks.NewMockWorkspaceClient(t)
Expand Down

0 comments on commit 1ab0a59

Please sign in to comment.