@@ -53,7 +53,7 @@ func TestSyncSimpleObject(t *testing.T) {
5353 orgWorkspace = "sync-simple"
5454 )
5555
56- ctx := context . Background ()
56+ ctx := t . Context ()
5757 ctrlruntime .SetLogger (logr .Discard ())
5858
5959 // setup a test environment in kcp
@@ -143,7 +143,7 @@ func TestSyncSimpleObjectOldNaming(t *testing.T) {
143143 orgWorkspace = "sync-simple-deprecated"
144144 )
145145
146- ctx := context . Background ()
146+ ctx := t . Context ()
147147 ctrlruntime .SetLogger (logr .Discard ())
148148
149149 // setup a test environment in kcp
@@ -232,7 +232,7 @@ func TestSyncWithDefaultNamingRules(t *testing.T) {
232232 orgWorkspace = "sync-default-naming-rules"
233233 )
234234
235- ctx := context . Background ()
235+ ctx := t . Context ()
236236 ctrlruntime .SetLogger (logr .Discard ())
237237
238238 // setup a test environment in kcp
@@ -327,7 +327,7 @@ func TestLocalChangesAreKept(t *testing.T) {
327327 orgWorkspace = "sync-undo-local-changes"
328328 )
329329
330- ctx := context . Background ()
330+ ctx := t . Context ()
331331 ctrlruntime .SetLogger (logr .Discard ())
332332
333333 // setup a test environment in kcp
@@ -533,7 +533,7 @@ func TestResourceFilter(t *testing.T) {
533533 orgWorkspace = "sync-resource-filter"
534534 )
535535
536- ctx := context . Background ()
536+ ctx := t . Context ()
537537 ctrlruntime .SetLogger (logr .Discard ())
538538
539539 // setup a test environment in kcp
@@ -654,7 +654,7 @@ func TestSyncingOverlyLongNames(t *testing.T) {
654654 orgWorkspace = "sync-long-names"
655655 )
656656
657- ctx := context . Background ()
657+ ctx := t . Context ()
658658 ctrlruntime .SetLogger (logr .Discard ())
659659
660660 // setup a test environment in kcp
0 commit comments