Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

serve s3: fix tests leaving multipart uploads open on Windows

Nick Craig-Woode236d983a636
diff --git a/cmd/serve/s3/put_test.go b/cmd/serve/s3/put_test.go
index 9f26ca0c0..658896f20 100644
--- a/cmd/serve/s3/put_test.go
+++ b/cmd/serve/s3/put_test.go
@@ -72,7 +72,7 @@ func newPutTestBackend(t *testing.T, backing string, vfsOpt *vfscommon.Options)
w, err := newServer(ctx, f, &opt, vfsOpt, &proxy.Opt)
require.NoError(t, err)
t.Cleanup(func() { _ = w.Shutdown() })
- return newBackend(w), f, bucket
+ return w.backend, f, bucket
}
var errBoom = errors.New("boom")