Skip to content

Commit 90192e5

Browse files
committed
Fix lint
1 parent 534f954 commit 90192e5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

agent/agent_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ func TestAgent_SFTP(t *testing.T) {
531531
if runtime.GOOS == "windows" {
532532
home = "/" + strings.ReplaceAll(home, "\\", "/")
533533
}
534+
//nolint:dogsled
534535
conn, _, _, _ := setupAgent(t, codersdk.WorkspaceAgentMetadata{}, 0)
535536
sshClient, err := conn.SSHClient(ctx)
536537
require.NoError(t, err)
@@ -562,6 +563,7 @@ func TestAgent_SCP(t *testing.T) {
562563
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
563564
defer cancel()
564565

566+
//nolint:dogsled
565567
conn, _, _, _ := setupAgent(t, codersdk.WorkspaceAgentMetadata{}, 0)
566568
sshClient, err := conn.SSHClient(ctx)
567569
require.NoError(t, err)
@@ -666,6 +668,7 @@ func TestAgent_StartupScript(t *testing.T) {
666668
t.Skip("This test doesn't work on Windows for some reason...")
667669
}
668670
content := "output"
671+
//nolint:dogsled
669672
_, _, _, fs := setupAgent(t, codersdk.WorkspaceAgentMetadata{
670673
StartupScript: "echo " + content,
671674
}, 0)
@@ -797,6 +800,7 @@ func TestAgent_ReconnectingPTY(t *testing.T) {
797800
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
798801
defer cancel()
799802

803+
//nolint:dogsled
800804
conn, _, _, _ := setupAgent(t, codersdk.WorkspaceAgentMetadata{}, 0)
801805
id := uuid.New()
802806
netConn, err := conn.ReconnectingPTY(ctx, id, 100, 100, "/bin/bash")
@@ -898,6 +902,7 @@ func TestAgent_Dial(t *testing.T) {
898902
}
899903
}()
900904

905+
//nolint:dogsled
901906
conn, _, _, _ := setupAgent(t, codersdk.WorkspaceAgentMetadata{}, 0)
902907
require.True(t, conn.AwaitReachable(context.Background()))
903908
conn1, err := conn.DialContext(context.Background(), l.Addr().Network(), l.Addr().String())
@@ -919,6 +924,7 @@ func TestAgent_Speedtest(t *testing.T) {
919924
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
920925
defer cancel()
921926
derpMap := tailnettest.RunDERPAndSTUN(t)
927+
//nolint:dogsled
922928
conn, _, _, _ := setupAgent(t, codersdk.WorkspaceAgentMetadata{
923929
DERPMap: derpMap,
924930
}, 0)
@@ -1004,6 +1010,7 @@ func TestAgent_WriteVSCodeConfigs(t *testing.T) {
10041010
}
10051011

10061012
func setupSSHCommand(t *testing.T, beforeArgs []string, afterArgs []string) *exec.Cmd {
1013+
//nolint:dogsled
10071014
agentConn, _, _, _ := setupAgent(t, codersdk.WorkspaceAgentMetadata{}, 0)
10081015
listener, err := net.Listen("tcp", "127.0.0.1:0")
10091016
require.NoError(t, err)
@@ -1050,6 +1057,7 @@ func setupSSHCommand(t *testing.T, beforeArgs []string, afterArgs []string) *exe
10501057
func setupSSHSession(t *testing.T, options codersdk.WorkspaceAgentMetadata) *ssh.Session {
10511058
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
10521059
defer cancel()
1060+
//nolint:dogsled
10531061
conn, _, _, _ := setupAgent(t, options, 0)
10541062
sshClient, err := conn.SSHClient(ctx)
10551063
require.NoError(t, err)

0 commit comments

Comments
 (0)