Skip to content

Commit 310ad6c

Browse files
committed
TestParseErrors fix: when no error is wanted but still an err is returned mark test as failed
1 parent adcb2b1 commit 310ad6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/url/url_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ func TestParseErrors(t *testing.T) {
14541454
continue
14551455
}
14561456
if err != nil {
1457-
t.Logf("Parse(%q) = %v; want no error", tt.in, err)
1457+
t.Errorf("Parse(%q) = %v; want no error", tt.in, err)
14581458
}
14591459
}
14601460
}

0 commit comments

Comments
 (0)