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

fstests: fix TestFsName fails when using remote:with/path

Cnly3220acc72900
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go
index 8d0f587e1..0164366d1 100644
--- a/fstest/fstests/fstests.go
+++ b/fstest/fstests/fstests.go
@@ -385,7 +385,7 @@ func Run(t *testing.T, opt *Opt) {
t.Run("FsName", func(t *testing.T) {
skipIfNotOk(t)
got := remote.Name()
- want := remoteName
+ want := remoteName[:strings.IndexRune(remoteName, ':')+1]
if isLocalRemote {
want = "local:"
}