mirror of
https://github.com/rclone/rclone.git
synced 2025-08-10 22:23:57 +02:00
bisync: make session path even shorter on tests
The .lck file filename length needs to be less than 255 bytes (not symbols) on linux, and it was still too long on this test, because of the subdir=測試_Русский_{spc}_{spc}_ě_áñ on remotes with long names, such as TestChunkerChunk3bNoRenameLocal:
This commit is contained in:
@ -275,7 +275,7 @@ func testBisync(t *testing.T, path1, path2 string) {
|
||||
|
||||
baseDir, err := os.Getwd()
|
||||
require.NoError(t, err, "get current directory")
|
||||
randName := "bs-" + time.Now().Format("150405-") + random.String(2) // some bucket backends don't like dots, keep this short to avoid linux errors
|
||||
randName := time.Now().Format("150405") + random.String(2) // some bucket backends don't like dots, keep this short to avoid linux errors
|
||||
tempDir := filepath.Join(os.TempDir(), randName)
|
||||
workDir := filepath.Join(tempDir, "workdir")
|
||||
|
||||
|
Reference in New Issue
Block a user