enable go-required check
Signed-off-by: xin.li <xin.li@daocloud.io> Kubernetes-commit: d92c70b82693f3c974e63dcf7abd2d5068c0530c
This commit is contained in:
parent
afb79f83b3
commit
a3d85c236b
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue