Skip to content

Commit 64993a0

Browse files
committed
Fix comments
1 parent 17234c4 commit 64993a0

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

agent/agent.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,9 @@ func (a *agent) createTailnet(ctx context.Context, derpMap *tailcfg.DERPMap) (_
455455
if err != nil {
456456
continue
457457
}
458-
_ = a.handleReconnectingPTY(ctx, logger, msg, conn)
458+
go func() {
459+
_ = a.handleReconnectingPTY(ctx, logger, msg, conn)
460+
}()
459461
}
460462
}); err != nil {
461463
return nil, err

cli/ssh.go

-2
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,6 @@ fi
471471
472472
test ! -S "$agent_socket"
473473
`)
474-
fmt.Printf("Agent bytes %s\n", agentSocketBytes)
475-
476474
agentSocket := strings.TrimSpace(string(agentSocketBytes))
477475
if err != nil {
478476
return xerrors.Errorf("check if agent socket is running (check if %q exists): %w", agentSocket, err)

scaletest/reconnectingpty/run_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ import (
2222

2323
func Test_Runner(t *testing.T) {
2424
t.Parallel()
25-
t.Skip()
25+
// There's a race condition in agent/agent.go where connections
26+
// aren't closed when the Tailnet connection is. This causes the
27+
// goroutines to hang around and cause the test to fail.
28+
t.Skip("TODO: fix this test")
2629

2730
t.Run("OK", func(t *testing.T) {
2831
t.Parallel()

0 commit comments

Comments
 (0)