Skip to content

Commit 2dff25d

Browse files
code-asherEmyrk
andauthored
Elaborate on process name check comment
Co-authored-by: Steven Masley <[email protected]>
1 parent 9840a69 commit 2dff25d

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)