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

testserver: don't allow starting of an empty remote

Nick Craig-Woodbaaec5b12604
diff --git a/fstest/testserver/testserver.go b/fstest/testserver/testserver.go
index 1efb98e67..4ec5e0acb 100644
--- a/fstest/testserver/testserver.go
+++ b/fstest/testserver/testserver.go
@@ -118,6 +118,10 @@ func start(name string) error {
// Start starts the named test server which can be stopped by the
// function returned.
func Start(remoteName string) (fn func(), err error) {
+ if remoteName == "" {
+ // don't start the local backend
+ return func() {}, nil
+ }
var name string
name, _, err = fspath.Parse(remoteName)
if err != nil {