fix: enable empty and len rules from testifylint on pkg package
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
This commit is contained in:
@@ -102,7 +102,7 @@ func TestGrpcProber_Probe(t *testing.T) {
|
||||
fmt.Fprint(w, "res")
|
||||
}))
|
||||
u := strings.Split(server.URL, ":")
|
||||
assert.Equal(t, 3, len(u))
|
||||
assert.Len(t, u, 3)
|
||||
|
||||
port, err := strconv.Atoi(u[2])
|
||||
assert.Equal(t, nil, err)
|
||||
|
||||
Reference in New Issue
Block a user