Skip to content

Commit ca6ea63

Browse files
committed
fix unit test
1 parent 57b8c7f commit ca6ea63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/service/node_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func TestUnmountVolume(t *testing.T) {
246246

247247
t.Run("Umount fail", func(t *testing.T) {
248248
err := svc.UnmountVolume(ctx, "", "", map[string]string{})
249-
assert.Contains(t, err.Error(), "no such file or directory")
249+
assert.NotNil(t, err)
250250
})
251251

252252
t.Run("sunccess", func(t *testing.T) {

0 commit comments

Comments
 (0)