Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2dff25d

Browse files
code-asherEmyrk
andauthored
Elaborate on process name check comment
Co-authored-by: Steven Masley <Emyrk@users.noreply.github.com>
1 parent9840a69 commit2dff25d

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
ifruntime.GOOS!="linux" {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp