ssh: skip unsupported tests on wasip1
Updates golang/go#32840
Updates golang/go#58141
Change-Id: Ib4425c1743d417920745205586af250dbf80c7e4
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/485695
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
diff --git a/ssh/handshake_test.go b/ssh/handshake_test.go
index 3d0ab50..f190cbf 100644
--- a/ssh/handshake_test.go
+++ b/ssh/handshake_test.go
@@ -421,8 +421,8 @@
// 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")
+ if (runtime.GOOS == "js" || runtime.GOOS == "wasip1") && runtime.GOARCH == "wasm" {
+ t.Skipf("skipping on %s/wasm; see golang.org/issue/32840", runtime.GOOS)
}
msg := Marshal(&serviceRequestMsg{strings.Repeat("x", int(minRekeyThreshold)/4)})
diff --git a/ssh/test/dial_unix_test.go b/ssh/test/dial_unix_test.go
index 2dca0e6..6d5a735 100644
--- a/ssh/test/dial_unix_test.go
+++ b/ssh/test/dial_unix_test.go
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build !windows && !solaris && !js
-// +build !windows,!solaris,!js
+//go:build !windows && !solaris && !js && !wasip1
+// +build !windows,!solaris,!js,!wasip1
package test
diff --git a/ssh/test/session_test.go b/ssh/test/session_test.go
index f88c3b7..2d32769 100644
--- a/ssh/test/session_test.go
+++ b/ssh/test/session_test.go
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build !windows && !solaris && !js
-// +build !windows,!solaris,!js
+//go:build !windows && !solaris && !js && !wasip1
+// +build !windows,!solaris,!js,!wasip1
package test