"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
operations: fix core/du test with missing cache dir
Cao Yuhang76196a28973b
diff --git a/fs/operations/rc_test.go b/fs/operations/rc_test.goindex 04357fb72..4877806dc 100644--- a/fs/operations/rc_test.go+++ b/fs/operations/rc_test.go@@ -650,13 +650,16 @@ func TestRcCommand(t *testing.T) {func TestRcDu(t *testing.T) {ctx := context.Background()_, call := rcNewRun(t, "core/du")- in := rc.Params{}+ dir := t.TempDir()+ in := rc.Params{"dir": dir}out, err := call.Fn(ctx, in)if err == diskusage.ErrUnsupported {t.Skip(err)}- assert.NotEqual(t, "", out["dir"])- info := out["info"].(diskusage.Info)+ require.NoError(t, err)+ assert.Equal(t, dir, out["dir"])+ info, ok := out["info"].(diskusage.Info)+ require.True(t, ok)assert.True(t, info.Total != 0)assert.True(t, info.Total > info.Free)assert.True(t, info.Total > info.Available)