diff --git a/internal/controller/impersonatorconfig/impersonator_config_test.go b/internal/controller/impersonatorconfig/impersonator_config_test.go index 86f5deb75..5db3c44a9 100644 --- a/internal/controller/impersonatorconfig/impersonator_config_test.go +++ b/internal/controller/impersonatorconfig/impersonator_config_test.go @@ -372,7 +372,7 @@ func TestImpersonatorConfigControllerSync(t *testing.T) { }) r.NoError(err) - // Return a func that starts a fake server when called, and shuts down the fake server when stopCh is closed. + // Return a func that starts a fake server when called, and shuts down the fake server when ctx is cancelled. // This fake server is enough like the real impersonation proxy server for this unit test because it // uses the supplied providers to serve TLS. The goal of this unit test is to make sure that the server // was started/stopped/configured correctly, not to test the actual impersonation behavior. @@ -404,7 +404,7 @@ func TestImpersonatorConfigControllerSync(t *testing.T) { }() if testHTTPServerInterruptCh == nil { - // Wait in the foreground for the stopCh to be closed, and kill the server when that happens. + // Wait in the foreground for the context to be done, and kill the server when that happens. // This is similar to the behavior of the real impersonation server. <-ctx.Done() } else {