Skip to content

Commit

Permalink
improve GOOS=tamago test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
abarisani committed Sep 9, 2024
1 parent 1ece41e commit 2a53cb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/dial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ func TestDialListenerAddr(t *testing.T) {
// To address both of those problems, we open a tcp4-only localhost port, but
// then dial the address string that the listener would have reported for a
// dual-stack port.
ln, err := Listen("tcp4", ":0")
ln, err := Listen("tcp4", "127.0.0.1:0")
if err != nil {
t.Fatal(err)
}
Expand Down
3 changes: 3 additions & 0 deletions src/net/http/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3394,6 +3394,9 @@ func testProxyForRequest(t *testing.T, tt proxyFromEnvTest, proxyForRequest func
t.Errorf("%v: got error = %q, want %q", tt, g, e)
return
}
if url == nil && tt.want == "<nil>" {
return
}
if got := fmt.Sprintf("%s", url); got != tt.want {
t.Errorf("%v: got URL = %q, want %q", tt, url, tt.want)
}
Expand Down

0 comments on commit 2a53cb3

Please sign in to comment.