bisync: make tempDir path shorter

to avoid exceeding linux filename length limits
This commit is contained in:
nielash 2024-04-09 07:23:08 -04:00 committed by Nick Craig-Wood
parent 2ab2ec29f9
commit bef9fd0bc3
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ func testBisync(t *testing.T, path1, path2 string) {
baseDir, err := os.Getwd()
require.NoError(t, err, "get current directory")
randName := "bisync-" + time.Now().Format("150405-") + random.String(5) // AzureBlob doesn't like dots
randName := "bs-" + 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")