From 1ab0a59ba5cf26e9f3c5903adaddf6d6d8d42ad5 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 7 Nov 2024 22:11:44 +0100 Subject: [PATCH] Skip test on Windows --- bundle/config/mutator/configure_wsfs_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bundle/config/mutator/configure_wsfs_test.go b/bundle/config/mutator/configure_wsfs_test.go index a0955e6f7..6f76293e0 100644 --- a/bundle/config/mutator/configure_wsfs_test.go +++ b/bundle/config/mutator/configure_wsfs_test.go @@ -2,6 +2,7 @@ package mutator_test import ( "context" + "runtime" "testing" "github.com/databricks/cli/bundle" @@ -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)