8000 Elaborate on process name check comment · coder/coder@34b7c5e · GitHub
[go: up one dir, main page]

Skip to content

Commit 34b7c5e

Browse files
code-asherEmyrk
andcommitted
Elaborate on process name check comment
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
1 parent ad034f2 commit 34b7c5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

agent/agent_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@ func TestAgent_Stats_Magic(t *testing.T) {
194194

195195
// This test name must contain the string checked for by the agent, since it
196196
// looks for this string in the process name.
197+
//
198+
// This test sets up a port forward that emulates what Jetbrains IDE's do when
199+
// using gateway. The remote server side of the port forward is spun up using
200+
// the gotest process, which includes the test name.
201+
// So this unit test emulates a PID in the workspace with a similar
202+
// name to the jetbrains IDE. That makes the agent this this SSH port
203+
// forward is a "jetbrains" session.
197204
t.Run("TracksIdea.vendor.name=JetBrains", func(t *testing.T) {
198205
t.Parallel()
199206
if runtime.GOOS != "linux" {

0 commit comments

Comments
 (0)
0