diff --git a/tests/Agent/IntegrationTests/IntegrationTestHelpers/AgentLogBase.cs b/tests/Agent/IntegrationTests/IntegrationTestHelpers/AgentLogBase.cs index 6ebd1c6e31..9223fb57e1 100644 --- a/tests/Agent/IntegrationTests/IntegrationTestHelpers/AgentLogBase.cs +++ b/tests/Agent/IntegrationTests/IntegrationTestHelpers/AgentLogBase.cs @@ -115,9 +115,8 @@ public string GetCrossProcessId(TimeSpan? timeoutOrZero = null) public string GetReportingAppLink(TimeSpan? timeoutOrZero = null) { - var match = TryGetLogLine(AgentReportingToLogLineRegex); - return match.Success ? match.Groups[1].Value : null; - } + var match = WaitForLogLine(AgentReportingToLogLineRegex, timeoutOrZero); + return match.Groups[1].Value; } public void WaitForConnect(TimeSpan? timeoutOrZero = null) {