mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
fix: enable bool-compare rule from testifylint linter (#125135)
* fix: enable bool-compare rule from testifylint linter Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update hack/golangci.yaml.in Co-authored-by: Patrick Ohly <patrick.ohly@intel.com> * Update golangci.yaml.in * Update golangci-strict.yaml * Update golangci.yaml.in * Update golangci.yaml.in * Update golangci.yaml.in * Update golangci.yaml.in * Update golangci.yaml * Update golangci-hints.yaml * Update golangci-strict.yaml * Update golangci.yaml.in * Update golangci.yaml * Update mux_test.go --------- Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
This commit is contained in:
@@ -121,14 +121,14 @@ func TestHandlerSupportsUserNamespaces(t *testing.T) {
|
||||
})
|
||||
|
||||
got, err := kubelet.HandlerSupportsUserNamespaces("has-support")
|
||||
assert.Equal(t, true, got)
|
||||
assert.True(t, got)
|
||||
assert.NoError(t, err)
|
||||
|
||||
got, err = kubelet.HandlerSupportsUserNamespaces("has-no-support")
|
||||
assert.Equal(t, false, got)
|
||||
assert.False(t, got)
|
||||
assert.NoError(t, err)
|
||||
|
||||
got, err = kubelet.HandlerSupportsUserNamespaces("unknown")
|
||||
assert.Equal(t, false, got)
|
||||
assert.False(t, got)
|
||||
assert.Error(t, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user