@@ -13,6 +13,7 @@ import (
13
13
"os"
14
14
"os/exec"
15
15
"path/filepath"
16
+ "runtime"
16
17
"strconv"
17
18
"strings"
18
19
"sync"
@@ -232,8 +233,8 @@ func (test *clientTest) run(t *testing.T, write bool) {
232
233
233
234
func recordingsClientConfig () * ssh.ClientConfig {
234
235
config := clientConfig ()
235
- // Remove ML-KEM since it only works with Go 1.24.
236
236
config .SetDefaults ()
237
+ // Remove ML-KEM since it only works with Go 1.24.
237
238
if config .KeyExchanges [0 ] == "mlkem768x25519-sha256" {
238
239
config .KeyExchanges = config .KeyExchanges [1 :]
239
240
}
@@ -322,6 +323,9 @@ func TestBannerCallback(t *testing.T) {
322
323
}
323
324
324
325
func TestRunCommandSuccess (t * testing.T ) {
326
+ if runtime .GOARCH == "wasm" {
327
+ t .Skip ("skipping test, executing a command, session.Run(), is not supported on wasm" )
328
+ }
325
329
test := clientTest {
326
330
name : "RunCommandSuccess" ,
327
331
config : recordingsClientConfig (),
@@ -361,6 +365,9 @@ func TestHostKeyCheck(t *testing.T) {
361
365
}
362
366
363
367
func TestRunCommandStdin (t * testing.T ) {
368
+ if runtime .GOARCH == "wasm" {
369
+ t .Skip ("skipping test, executing a command, session.Run(), is not supported on wasm" )
370
+ }
364
371
test := clientTest {
365
372
name : "RunCommandStdin" ,
366
373
config : recordingsClientConfig (),
@@ -387,6 +394,9 @@ func TestRunCommandStdin(t *testing.T) {
387
394
}
388
395
389
396
func TestRunCommandStdinError (t * testing.T ) {
397
+ if runtime .GOARCH == "wasm" {
398
+ t .Skip ("skipping test, executing a command, session.Run(), is not supported on wasm" )
399
+ }
390
400
test := clientTest {
391
401
name : "RunCommandStdinError" ,
392
402
config : recordingsClientConfig (),
@@ -414,6 +424,9 @@ func TestRunCommandStdinError(t *testing.T) {
414
424
}
415
425
416
426
func TestRunCommandFailed (t * testing.T ) {
427
+ if runtime .GOARCH == "wasm" {
428
+ t .Skip ("skipping test, executing a command, session.Run(), is not supported on wasm" )
429
+ }
417
430
test := clientTest {
418
431
name : "RunCommandFailed" ,
419
432
config : recordingsClientConfig (),
@@ -437,6 +450,9 @@ func TestRunCommandFailed(t *testing.T) {
437
450
}
438
451
439
452
func TestWindowChange (t * testing.T ) {
453
+ if runtime .GOARCH == "wasm" {
454
+ t .Skip ("skipping test, stdin/out are not supported on wasm" )
455
+ }
440
456
test := clientTest {
441
457
name : "WindowChange" ,
442
458
config : recordingsClientConfig (),
0 commit comments