Skip to content

Commit

Permalink
Merge pull request #187 from andyzhangx/fix-windows-test
Browse files Browse the repository at this point in the history
test: remove syscall due to build failure on Windows
  • Loading branch information
andyzhangx committed Aug 3, 2020
2 parents 713aae5 + fb231b7 commit e2a7a00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deploy/example/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
- metadata:
name: persistent-storage
annotations:
volume.beta.kubernetes.io/storage-class: blobfuse.csi.azure.com
volume.beta.kubernetes.io/storage-class: blob
spec:
accessModes: ["ReadWriteOnce"]
resources:
Expand Down
13 changes: 7 additions & 6 deletions pkg/blobfuse/nodeserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"errors"
"os"
"reflect"
"syscall"
"testing"

"google.golang.org/grpc/codes"
Expand Down Expand Up @@ -184,9 +183,10 @@ func TestNodePublishVolume(t *testing.T) {
}

// Clean up
_ = syscall.Unmount(sourceTest, syscall.MNT_DETACH)
_ = syscall.Unmount(targetTest, syscall.MNT_DETACH)
err := os.RemoveAll(sourceTest)
_ = d.mounter.Unmount(sourceTest)
err := d.mounter.Unmount(targetTest)
assert.NoError(t, err)
err = os.RemoveAll(sourceTest)
assert.NoError(t, err)
err = os.RemoveAll(targetTest)
assert.NoError(t, err)
Expand Down Expand Up @@ -232,8 +232,9 @@ func TestNodeUnpublishVolume(t *testing.T) {
}

//Clean up
_ = syscall.Unmount(targetTest, syscall.MNT_DETACH)
err := os.RemoveAll(sourceTest)
err := d.mounter.Unmount(targetTest)
assert.NoError(t, err)
err = os.RemoveAll(sourceTest)
assert.NoError(t, err)
err = os.RemoveAll(targetTest)
assert.NoError(t, err)
Expand Down

0 comments on commit e2a7a00

Please sign in to comment.