Skip to content

Commit 1ece41e

Browse files
committed
improve GOOS=tamago test coverage
1 parent c829a62 commit 1ece41e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/crypto/tls/handshake_client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2625,7 +2625,7 @@ func TestClientHandshakeContextCancellation(t *testing.T) {
26252625
if err != context.Canceled {
26262626
t.Errorf("Unexpected client handshake error: %v", err)
26272627
}
2628-
if runtime.GOARCH == "wasm" {
2628+
if runtime.GOARCH == "wasm" || runtime.GOOS == "tamago" {
26292629
t.Skip("conn.Close does not error as expected when called multiple times on WASM")
26302630
}
26312631
err = cli.Close()

src/crypto/tls/handshake_server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ func TestServerHandshakeContextCancellation(t *testing.T) {
19781978
if err != context.Canceled {
19791979
t.Errorf("Unexpected server handshake error: %v", err)
19801980
}
1981-
if runtime.GOARCH == "wasm" {
1981+
if runtime.GOARCH == "wasm" || runtime.GOOS == "tamago" {
19821982
t.Skip("conn.Close does not error as expected when called multiple times on WASM")
19831983
}
19841984
err = conn.Close()

0 commit comments

Comments
 (0)