From 9c6782baa89f317bb60c8648c1b1fdbb150b31c8 Mon Sep 17 00:00:00 2001 From: Tiger Kaovilai Date: Thu, 27 Aug 2026 23:50:17 -0400 Subject: [PATCH] Fix build: t.Context() needs Go 1.24, this branch pins Go 1.23 release-1.16's go.mod pins go 1.23.0/1.23.11. t.Context() was added in Go 1.24, so the backported test failed to even compile (breaking both Run CI and Run Linter Check identically, since golangci-lint's typecheck pass hits the same compile error). Use context.TODO(), matching every other Reconcile() call in this test file. Signed-off-by: Tiger Kaovilai --- pkg/controller/backup_deletion_controller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/backup_deletion_controller_test.go b/pkg/controller/backup_deletion_controller_test.go index 854f80e9e..b1f9ed0f8 100644 --- a/pkg/controller/backup_deletion_controller_test.go +++ b/pkg/controller/backup_deletion_controller_test.go @@ -460,7 +460,7 @@ func TestBackupDeletionControllerReconcile(t *testing.T) { td.backupStore.On("GetBackupContents", input.Spec.BackupName).Return(io.NopCloser(bytes.NewReader([]byte("hello world"))), nil) td.backupStore.On("DeleteBackup", input.Spec.BackupName).Return(nil) - _, err := td.controller.Reconcile(t.Context(), td.req) + _, err := td.controller.Reconcile(context.TODO(), td.req) require.NoError(t, err) td.backupStore.AssertCalled(t, "DeleteBackup", input.Spec.BackupName)