diff --git a/vfs/vfstest/write.go b/vfs/vfstest/write.go index d4c2e0d92..6d883cbf0 100644 --- a/vfs/vfstest/write.go +++ b/vfs/vfstest/write.go @@ -15,7 +15,7 @@ func TestWriteFileNoWrite(t *testing.T) { run.skipIfNoFUSE(t) fd, err := osCreate(run.path("testnowrite")) - assert.NoError(t, err) + require.NoError(t, err) err = fd.Close() assert.NoError(t, err) diff --git a/vfs/vfstest/write_unix.go b/vfs/vfstest/write_unix.go index 981035822..bbd9c2657 100644 --- a/vfs/vfstest/write_unix.go +++ b/vfs/vfstest/write_unix.go @@ -8,6 +8,7 @@ import ( "github.com/rclone/rclone/vfs/vfscommon" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" "golang.org/x/sys/unix" ) @@ -20,7 +21,7 @@ func TestWriteFileDoubleClose(t *testing.T) { } out, err := osCreate(run.path("testdoubleclose")) - assert.NoError(t, err) + require.NoError(t, err) fd := out.Fd() fd1, err := unix.Dup(int(fd))