mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +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
|
enable-all: true
|
||||||
disable: # TODO: remove each disabled rule and fix it
|
disable: # TODO: remove each disabled rule and fix it
|
||||||
- float-compare
|
- float-compare
|
||||||
- go-require
|
|
||||||
- require-error
|
- require-error
|
||||||
|
@ -242,7 +242,6 @@ linters-settings: # please keep this alphabetized
|
|||||||
disable: # TODO: remove each disabled rule and fix it
|
disable: # TODO: remove each disabled rule and fix it
|
||||||
{{- if .Base }}
|
{{- if .Base }}
|
||||||
- float-compare
|
- float-compare
|
||||||
- go-require
|
|
||||||
{{- end}}
|
{{- end}}
|
||||||
- require-error
|
- require-error
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
@ -291,7 +291,7 @@ func TestInformerNeverStarts(t *testing.T) {
|
|||||||
go func() {
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
stopReason := myController.Run(testContext)
|
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)
|
t.Errorf("expected error to be context.Canceled, but got: %v", stopReason)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user