lang: funcs: core: net: Tidy up test

This commit is contained in:
James Shubin
2023-10-03 18:45:17 -04:00
parent a686c5f9aa
commit 02153356de

View File

@@ -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
}