Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliy-leschenko committed Aug 6, 2022
1 parent 625db01 commit 67a3b6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/mounter/safe_mounter_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (mounter *csiProxyMounter) SMBMount(source, target, fsType string, mountOpt
source = strings.Replace(source, "/", "\\", -1)
mappingPath, err := getRootMappingPath(source)
if err != nil {
return fmt.Errorf("smb mapping failed because getRootMappingPath(%s) failed with %v", source, err)
return fmt.Errorf("smb mapping failed because getRootMappingPath(%s) failed with: %v", source, err)
}
unlock := lock(mappingPath)
defer unlock()
Expand Down Expand Up @@ -137,7 +137,7 @@ func (mounter *csiProxyMounter) SMBUnmount(target string) error {
} else {
mappingPath, err := getRootMappingPath(remotePath)
if err != nil {
klog.Warningf("getRootMappingPath(%s) failed with %v", remotePath, err)
klog.Warningf("getRootMappingPath(%s) failed with: %v", remotePath, err)
} else {
klog.V(4).Infof("SMBUnmount: remote path: %s, mapping path: %s", remotePath, mappingPath)

Expand Down
4 changes: 2 additions & 2 deletions pkg/smb/nodeserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ func TestNodeStageVolume(t *testing.T) {
sourceTest := testutil.GetWorkDirPath("source_test", t)

volContext := map[string]string{
sourceField: "test_source",
sourceField: "\\\\hostname\\share",
}
volContextWithMetadata := map[string]string{
sourceField: "test_source",
sourceField: "\\\\hostname\\share",
pvcNameKey: "pvcname",
pvcNamespaceKey: "pvcnamespace",
pvNameKey: "pvname",
Expand Down

0 comments on commit 67a3b6c

Please sign in to comment.