You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.LessOrEqualf(f.t, len(processes), 1, "More than one agent left running at the end of the test when second agent in namespace %s was used: %v", f.installOpts.Namespace, processes)
292
+
// Only consider the main agent process and not sub-processes so that we can detect when
293
+
// multiple agents are running without needing to know the number of input sub-processes to expect.
294
+
agentProcesses:=getElasticAgentProcesses(f.t)
295
+
assert.LessOrEqualf(f.t, len(agentProcesses), 1, "More than one agent left running at the end of the test when second agent in namespace %s was used: %v", f.installOpts.Namespace, agentProcesses)
295
296
// The agent left running has to be the non-development agent. The development agent should be uninstalled first as a convention.
"The agent installed into namespace %s was left running at the end of the test or was not uninstalled first: %v", f.installOpts.Namespace, agentProcesses)
299
300
}
300
301
return
301
302
}
302
303
304
+
// If not using an installation namespace, there should be no elastic-agent or agentbeat processes left running.
0 commit comments