1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-10 05:13:45 +00:00

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

This commit is contained in:
Cnly
2018-12-26 15:14:25 +08:00
committed by Nick Craig-Wood
parent 3c97933416
commit 3220acc729

View File

@@ -385,7 +385,7 @@ func Run(t *testing.T, opt *Opt) {
t.Run("FsName", func(t *testing.T) { t.Run("FsName", func(t *testing.T) {
skipIfNotOk(t) skipIfNotOk(t)
got := remote.Name() got := remote.Name()
want := remoteName want := remoteName[:strings.IndexRune(remoteName, ':')+1]
if isLocalRemote { if isLocalRemote {
want = "local:" want = "local:"
} }