File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,13 @@ func TestAgent_Stats_Magic(t *testing.T) {
194
194
195
195
// This test name must contain the string checked for by the agent, since it
196
196
// 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.
197
204
t .Run ("TracksIdea.vendor.name=JetBrains" , func (t * testing.T ) {
198
205
t .Parallel ()
199
206
if runtime .GOOS != "linux" {
You can’t perform that action at this time.
0 commit comments