1
mirror of https://github.com/rclone/rclone synced 2024-12-26 18:23:45 +01:00

fstests: make tests pass when using -remote :backend:

This commit is contained in:
Nick Craig-Wood 2019-09-29 17:25:11 +01:00
parent 25a0703b45
commit 86dcb54c38

View File

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