ssh: skip testHandshakeErrorHandlingN on js/wasm
The wasm runtime cannot schedule a GC run on tight loops.
Therefore it runs out of memory if such a loop allocates memory.
Skip such a test for now.
Updates golang/go#32840
Change-Id: I922b6e02710915776d2820573fd1584a5941185b
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/184397
Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Han-Wen Nienhuys <hanwen@google.com>
diff --git a/ssh/handshake_test.go b/ssh/handshake_test.go
index 91d4935..02fbe83 100644
--- a/ssh/handshake_test.go
+++ b/ssh/handshake_test.go
@@ -421,6 +421,9 @@
// handshakeTransport deadlocks, the go runtime will detect it and
// panic.
func testHandshakeErrorHandlingN(t *testing.T, readLimit, writeLimit int, coupled bool) {
+ if runtime.GOOS == "js" && runtime.GOARCH == "wasm" {
+ t.Skip("skipping on js/wasm; see golang.org/issue/32840")
+ }
msg := Marshal(&serviceRequestMsg{strings.Repeat("x", int(minRekeyThreshold)/4)})
a, b := memPipe()