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

build: in tests use t.Context, added in go1.24

Nick Craig-Woodd7aa37d26323
diff --git a/fs/rc/jobs/job_test.go b/fs/rc/jobs/job_test.go
index dcce3879b..f0799200c 100644
--- a/fs/rc/jobs/job_test.go
+++ b/fs/rc/jobs/job_test.go
@@ -539,8 +539,7 @@ func TestOnFinish(t *testing.T) {
func TestOnFinishAlreadyFinished(t *testing.T) {
jobID.Store(0)
done := make(chan struct{})
- ctx, cancel := context.WithCancel(context.Background())
- defer cancel()
+ ctx := t.Context()
job, _, err := NewJob(ctx, shortFn, rc.Params{})
assert.NoError(t, err)