fstest: make RandomRemoteName shorter

Use 12 random characters instead of 24, to avoid trouble on the bisync tests
This commit is contained in:
nielash
2024-04-22 19:34:20 -04:00
committed by Nick Craig-Wood
parent 9c287c72d6
commit 3ae4534ce6
2 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ import (
// MatchTestRemote matches the remote names used for testing (copied
// from fstest/fstest.go so we don't have to import that and get all
// its flags)
var MatchTestRemote = regexp.MustCompile(`^rclone-test-[abcdefghijklmnopqrstuvwxyz0123456789]{24}(_segments)?$`)
var MatchTestRemote = regexp.MustCompile(`^rclone-test-[abcdefghijklmnopqrstuvwxyz0123456789]{12,24}(_segments)?$`)
// cleanFs runs a single clean fs for left over directories
func cleanFs(ctx context.Context, remote string, cleanup bool) error {