"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
vfstest: fix crash if open failed
Nick Craig-Wood67d4394a37d8
diff --git a/vfs/vfstest/write.go b/vfs/vfstest/write.goindex 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.goindex 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))