lang: funcs: core: net: Tidy up test
This commit is contained in:
@@ -62,7 +62,7 @@ func TestCidrToIP(t *testing.T) {
|
||||
t.Errorf("input: %s, did not expect error but got: %#v", test.input, err)
|
||||
return
|
||||
}
|
||||
if err1 := output.Cmp(expectedStr); err1 != nil {
|
||||
if err := output.Cmp(expectedStr); err != nil {
|
||||
t.Errorf("input: %s, expected: %s, got: %s", test.input, expectedStr, output)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user