mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
Fix tests on Windows
This commit is contained in:
parent
72add5ab27
commit
da2e2544ee
@ -13,6 +13,7 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
"testing"
|
||||
@ -147,10 +148,12 @@ func TestFsRoot(t *testing.T) {
|
||||
name := remote.Name() + ":"
|
||||
root := remote.Root()
|
||||
if isLocalRemote {
|
||||
name = ""
|
||||
}
|
||||
// only check last path element on local
|
||||
require.Equal(t, filepath.Base(subRemoteName), filepath.Base(root))
|
||||
} else {
|
||||
require.Equal(t, subRemoteName, name+root)
|
||||
}
|
||||
}
|
||||
|
||||
// TestFsRmdirEmpty tests deleting an empty directory
|
||||
func TestFsRmdirEmpty(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user