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

alias: fix tests after parsing of ... change #4862

Nick Craig-Woodbdc2278a3030
diff --git a/backend/alias/alias_internal_test.go b/backend/alias/alias_internal_test.go
index 830dbcb1a..5839a9fff 100644
--- a/backend/alias/alias_internal_test.go
+++ b/backend/alias/alias_internal_test.go
@@ -54,14 +54,15 @@ func TestNewFS(t *testing.T) {
{"four/under four.txt", 9, false},
}},
{"four", "..", "", true, []testEntry{
- {"four", -1, true},
- {"one%.txt", 6, false},
- {"three", -1, true},
- {"two.html", 7, false},
+ {"five", -1, true},
+ {"under four.txt", 9, false},
}},
- {"four", "../three", "", true, []testEntry{
+ {"", "../../three", "", true, []testEntry{
{"underthree.txt", 9, false},
}},
+ {"four", "../../five", "", true, []testEntry{
+ {"underfive.txt", 6, false},
+ }},
} {
what := fmt.Sprintf("test %d remoteRoot=%q, fsRoot=%q, fsList=%q", testi, test.remoteRoot, test.fsRoot, test.fsList)