"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
bisync: avoid starting tests we don't have time to finish
nielash897765586969
diff --git a/cmd/bisync/bisync_test.go b/cmd/bisync/bisync_test.goindex 56708e50d..5824a5557 100644--- a/cmd/bisync/bisync_test.go+++ b/cmd/bisync/bisync_test.go@@ -335,13 +335,23 @@ func testBisync(t *testing.T, path1, path2 string) {}}require.False(t, b.stopAt > 0 && len(testList) > 1, "-stop-at is meaningful only for a single test")+ deadline, hasDeadline := t.Deadline()+ var maxRunDuration time.Durationfor _, testCase := range testList {testCase = strings.ReplaceAll(testCase, "-", "_")testCase = strings.TrimPrefix(testCase, "test_")t.Run(testCase, func(childTest *testing.T) {+ startTime := time.Now()+ remaining := time.Until(deadline)+ if hasDeadline && (remaining < maxRunDuration || remaining < 10*time.Second) { // avoid starting tests we don't have time to finish+ childTest.Fatalf("test %v timed out - not enough time to start test (%v remaining, need %v for test)", testCase, remaining, maxRunDuration)+ }bCopy := *bbCopy.runTestCase(ctx, childTest, testCase)+ if time.Since(startTime) > maxRunDuration {+ maxRunDuration = time.Since(startTime)+ }})}}