From 0ed2ad182f1258917bc28fafb6e06d240ca49fb2 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 27 Mar 2024 09:21:43 +0100 Subject: [PATCH] test: fix shutdown of test/integration/servicecidr.TestMigrateServiceCIDR Due to a typo in b584b87a94d6ff5256624bbf83dd5f758dff6eb2, the wrong context got canceled. The test still passes, but it takes an additional minute before it eventually shuts down. --- test/integration/servicecidr/migration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/servicecidr/migration_test.go b/test/integration/servicecidr/migration_test.go index 926651b4946..c0e365d38d8 100644 --- a/test/integration/servicecidr/migration_test.go +++ b/test/integration/servicecidr/migration_test.go @@ -209,7 +209,7 @@ func TestMigrateServiceCIDR(t *testing.T) { // ServiceCIDR controller tCtx2 := ktesting.Init(t) - defer tCtx.Cancel("tearing down ServiceCIDR controller 2") + defer tCtx2.Cancel("tearing down ServiceCIDR controller 2") informers2 := informers.NewSharedInformerFactory(client2, resyncPeriod) go servicecidrs.NewController( tCtx2,