mirror of
https://github.com/golang/go
synced 2024-11-22 03:14:41 -07:00
Change test skip condition from GOARCH to GOOS.
This allows to skip the last part of the test under GopherJS as well as WebAssembly, since GopherJS shares GOOS=js with wasm.
This commit is contained in:
parent
6673d5d701
commit
95f576e803
@ -2587,8 +2587,8 @@ func TestClientHandshakeContextCancellation(t *testing.T) {
|
||||
if err != context.Canceled {
|
||||
t.Errorf("Unexpected client handshake error: %v", err)
|
||||
}
|
||||
if runtime.GOARCH == "wasm" {
|
||||
t.Skip("conn.Close does not error as expected when called multiple times on WASM")
|
||||
if runtime.GOOS == "js" {
|
||||
t.Skip("conn.Close does not error as expected when called multiple times on GOOS=js")
|
||||
}
|
||||
err = cli.Close()
|
||||
if err == nil {
|
||||
|
@ -1967,8 +1967,8 @@ func TestServerHandshakeContextCancellation(t *testing.T) {
|
||||
if err != context.Canceled {
|
||||
t.Errorf("Unexpected server handshake error: %v", err)
|
||||
}
|
||||
if runtime.GOARCH == "wasm" {
|
||||
t.Skip("conn.Close does not error as expected when called multiple times on WASM")
|
||||
if runtime.GOOS == "js" {
|
||||
t.Skip("conn.Close does not error as expected when called multiple times on GOOS=js")
|
||||
}
|
||||
err = conn.Close()
|
||||
if err == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user