@@ -305,7 +305,7 @@ func TestAgent_TCPLocalForwarding(t *testing.T) {
305
305
}
306
306
}()
307
307
308
- cmd := setupSSHCommand (t , []string {"-L" , fmt .Sprintf ("%d:127.0.0.1:%d" , randomPort , remotePort )}, []string {"sleep" , "10 " })
308
+ cmd := setupSSHCommand (t , []string {"-L" , fmt .Sprintf ("%d:127.0.0.1:%d" , randomPort , remotePort )}, []string {"sleep" , "5 " })
309
309
err = cmd .Start ()
310
310
require .NoError (t , err )
311
311
@@ -372,7 +372,7 @@ func TestAgent_TCPRemoteForwarding(t *testing.T) {
372
372
}
373
373
}()
374
374
375
- cmd := setupSSHCommand (t , []string {"-R" , fmt .Sprintf ("127.0.0.1:%d:127.0.0.1:%d" , randomPort , localPort )}, []string {"sleep" , "10 " })
375
+ cmd := setupSSHCommand (t , []string {"-R" , fmt .Sprintf ("127.0.0.1:%d:127.0.0.1:%d" , randomPort , localPort )}, []string {"sleep" , "5 " })
376
376
err = cmd .Start ()
377
377
require .NoError (t , err )
378
378
@@ -437,7 +437,7 @@ func TestAgent_UnixLocalForwarding(t *testing.T) {
437
437
}
438
438
}()
439
439
440
- cmd := setupSSHCommand (t , []string {"-L" , fmt .Sprintf ("%s:%s" , localSocketPath , remoteSocketPath )}, []string {"sleep" , "10 " })
440
+ cmd := setupSSHCommand (t , []string {"-L" , fmt .Sprintf ("%s:%s" , localSocketPath , remoteSocketPath )}, []string {"sleep" , "5 " })
441
441
err = cmd .Start ()
442
442
require .NoError (t , err )
443
443
@@ -495,7 +495,7 @@ func TestAgent_UnixRemoteForwarding(t *testing.T) {
495
495
}
496
496
}()
497
497
498
- cmd := setupSSHCommand (t , []string {"-R" , fmt .Sprintf ("%s:%s" , remoteSocketPath , localSocketPath )}, []string {"sleep" , "10 " })
498
+ cmd := setupSSHCommand (t , []string {"-R" , fmt .Sprintf ("%s:%s" , remoteSocketPath , localSocketPath )}, []string {"sleep" , "5 " })
499
499
err = cmd .Start ()
500
500
require .NoError (t , err )
501
501
@@ -703,7 +703,7 @@ func TestAgent_Lifecycle(t *testing.T) {
703
703
t .Parallel ()
704
704
705
705
_ , client , _ , _ := setupAgent (t , agentsdk.Metadata {
706
- StartupScript : "sleep 10 " ,
706
+ StartupScript : "sleep 5 " ,
707
707
StartupScriptTimeout : time .Nanosecond ,
708
708
}, 0 )
709
709
0 commit comments