mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
enable go-required check
Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
parent
bc4ae15d77
commit
d92c70b826
@ -277,5 +277,4 @@ linters-settings: # please keep this alphabetized
|
||||
enable-all: true
|
||||
disable: # TODO: remove each disabled rule and fix it
|
||||
- float-compare
|
||||
- go-require
|
||||
- require-error
|
||||
|
@ -242,7 +242,6 @@ linters-settings: # please keep this alphabetized
|
||||
disable: # TODO: remove each disabled rule and fix it
|
||||
{{- if .Base }}
|
||||
- float-compare
|
||||
- go-require
|
||||
{{- end}}
|
||||
- require-error
|
||||
{{- end}}
|
||||
|
@ -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
Block a user