Skip to content

Commit de1e898

Browse files
committed
net/url: fail TestParseErrors test when getting an unwanted error
The TestParseErrors test function was not strict with unwanted errors received from url.Parse(). It was not failing in such cases, now it does. Updates #33646 and #29098
1 parent b9bf2f5 commit de1e898

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
@@ -1456,7 +1456,7 @@ func TestParseErrors(t *testing.T) {
14561456
continue
14571457
}
14581458
if err != nil {
1459-
t.Logf("Parse(%q) = %v; want no error", tt.in, err)
1459+
t.Errorf("Parse(%q) = %v; want no error", tt.in, err)
14601460
}
14611461
}
14621462
}

0 commit comments

Comments
 (0)