Skip to content

Commit

Permalink
test: run windows ut with host process enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Oct 12, 2024
1 parent 3adba10 commit 9a5a98c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/azurefile/azurefile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func NewFakeDriver() *Driver {
KubeConfig: "",
Endpoint: "tcp://127.0.0.1:0",
WaitForAzCopyTimeoutMinutes: 1,
EnableWindowsHostProcess: true,
}
driver := NewDriver(&driverOptions)
driver.Name = fakeDriverName
Expand Down
2 changes: 1 addition & 1 deletion pkg/azurefile/fake_mounter.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (f *fakeMounter) IsMountPoint(file string) (bool, error) {
// NewFakeMounter fake mounter
func NewFakeMounter() (*mount.SafeFormatAndMount, error) {
if runtime.GOOS == "windows" {
return mounter.NewSafeMounter(false)
return mounter.NewSafeMounter(true)
}
return &mount.SafeFormatAndMount{
Interface: &fakeMounter{},
Expand Down

0 comments on commit 9a5a98c

Please sign in to comment.