enable go-required check

Signed-off-by: xin.li <xin.li@daocloud.io>

Kubernetes-commit: d92c70b82693f3c974e63dcf7abd2d5068c0530c
This commit is contained in:
xin.li 2025-02-23 16:54:43 +08:00 committed by Kubernetes Publisher
parent afb79f83b3
commit a3d85c236b
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ func TestInformerNeverStarts(t *testing.T) {
go func() {
defer wg.Done()
stopReason := myController.Run(testContext)
if !errors.Is(stopReason, context.Canceled) {
if !errors.Is(stopReason, context.DeadlineExceeded) {
t.Errorf("expected error to be context.Canceled, but got: %v", stopReason)
}
}()