@@ -531,6 +531,7 @@ func TestAgent_SFTP(t *testing.T) {
531
531
if runtime .GOOS == "windows" {
532
532
home = "/" + strings .ReplaceAll (home , "\\ " , "/" )
533
533
}
534
+ //nolint:dogsled
534
535
conn , _ , _ , _ := setupAgent (t , codersdk.WorkspaceAgentMetadata {}, 0 )
535
536
sshClient , err := conn .SSHClient (ctx )
536
537
require .NoError (t , err )
@@ -562,6 +563,7 @@ func TestAgent_SCP(t *testing.T) {
562
563
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
563
564
defer cancel ()
564
565
566
+ //nolint:dogsled
565
567
conn , _ , _ , _ := setupAgent (t , codersdk.WorkspaceAgentMetadata {}, 0 )
566
568
sshClient , err := conn .SSHClient (ctx )
567
569
require .NoError (t , err )
@@ -666,6 +668,7 @@ func TestAgent_StartupScript(t *testing.T) {
666
668
t .Skip ("This test doesn't work on Windows for some reason..." )
667
669
}
668
670
content := "output"
671
+ //nolint:dogsled
669
672
_ , _ , _ , fs := setupAgent (t , codersdk.WorkspaceAgentMetadata {
670
673
StartupScript : "echo " + content ,
671
674
}, 0 )
@@ -797,6 +800,7 @@ func TestAgent_ReconnectingPTY(t *testing.T) {
797
800
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
798
801
defer cancel ()
799
802
803
+ //nolint:dogsled
800
804
conn , _ , _ , _ := setupAgent (t , codersdk.WorkspaceAgentMetadata {}, 0 )
801
805
id := uuid .New ()
802
806
netConn , err := conn .ReconnectingPTY (ctx , id , 100 , 100 , "/bin/bash" )
@@ -898,6 +902,7 @@ func TestAgent_Dial(t *testing.T) {
898
902
}
899
903
}()
900
904
905
+ //nolint:dogsled
901
906
conn , _ , _ , _ := setupAgent (t , codersdk.WorkspaceAgentMetadata {}, 0 )
902
907
require .True (t , conn .AwaitReachable (context .Background ()))
903
908
conn1 , err := conn .DialContext (context .Background (), l .Addr ().Network (), l .Addr ().String ())
@@ -919,6 +924,7 @@ func TestAgent_Speedtest(t *testing.T) {
919
924
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
920
925
defer cancel ()
921
926
derpMap := tailnettest .RunDERPAndSTUN (t )
927
+ //nolint:dogsled
922
928
conn , _ , _ , _ := setupAgent (t , codersdk.WorkspaceAgentMetadata {
923
929
DERPMap : derpMap ,
924
930
}, 0 )
@@ -1004,6 +1010,7 @@ func TestAgent_WriteVSCodeConfigs(t *testing.T) {
1004
1010
}
1005
1011
1006
1012
func setupSSHCommand (t * testing.T , beforeArgs []string , afterArgs []string ) * exec.Cmd {
1013
+ //nolint:dogsled
1007
1014
agentConn , _ , _ , _ := setupAgent (t , codersdk.WorkspaceAgentMetadata {}, 0 )
1008
1015
listener , err := net .Listen ("tcp" , "127.0.0.1:0" )
1009
1016
require .NoError (t , err )
@@ -1050,6 +1057,7 @@ func setupSSHCommand(t *testing.T, beforeArgs []string, afterArgs []string) *exe
1050
1057
func setupSSHSession (t * testing.T , options codersdk.WorkspaceAgentMetadata ) * ssh.Session {
1051
1058
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
1052
1059
defer cancel ()
1060
+ //nolint:dogsled
1053
1061
conn , _ , _ , _ := setupAgent (t , options , 0 )
1054
1062
sshClient , err := conn .SSHClient (ctx )
1055
1063
require .NoError (t , err )
0 commit comments