Skip to content

Commit

Permalink
net/url: fail TestParseErrors test when getting an unwanted error
Browse files Browse the repository at this point in the history
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 golang#33646 and golang#29098
  • Loading branch information
stefanb committed Aug 27, 2019
1 parent b9bf2f5 commit de1e898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/url/url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ func TestParseErrors(t *testing.T) {
continue
}
if err != nil {
t.Logf("Parse(%q) = %v; want no error", tt.in, err)
t.Errorf("Parse(%q) = %v; want no error", tt.in, err)
}
}
}
Expand Down

0 comments on commit de1e898

Please sign in to comment.