Skip to content

Commit c6c921a

Browse files
authored
test: Make infinite tracing integration test more stable. (#1926)
1 parent ba0bec9 commit c6c921a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/Agent/IntegrationTests/IntegrationTestHelpers/AgentLogBase.cs

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public abstract class AgentLogBase
6565

6666
// Infinite trace
6767
public const string SpanStreamingServiceConnectedLogLineRegex = InfoLogLinePrefixRegex + @"SpanStreamingService: gRPC channel to endpoint (.*) connected.(.*)";
68+
public const string SpanStreamingServiceStreamConnectedLogLineRegex = FinestLogLinePrefixRegex + @"SpanStreamingService: consumer \d+ - gRPC request stream connected (.*)";
6869
public const string SpanStreamingSuccessfullySentLogLineRegex = FinestLogLinePrefixRegex + @"SpanStreamingService: consumer \d+ - Attempting to send (\d+) item\(s\) - Success";
6970
public const string SpanStreamingSuccessfullyProcessedByServerResponseLogLineRegex = FinestLogLinePrefixRegex + @"SpanStreamingService: consumer \d+ - Received gRPC Server response messages: (\d+)";
7071
public const string SpanStreamingResponseGrpcError = FinestLogLinePrefixRegex + @"ResponseStreamWrapper: consumer \d+ - gRPC RpcException encountered while handling gRPC server responses: (.*)";

tests/Agent/IntegrationTests/IntegrationTests/InfiniteTracing/InfiniteTracingTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public InfiniteTracingTestsBase(TFixture fixture, ITestOutputHelper output) : ba
3737
exerciseApplication: () =>
3838
{
3939
// Wait for 8T to connect
40-
_fixture.AgentLog.WaitForLogLine(AgentLogBase.SpanStreamingServiceConnectedLogLineRegex, TimeSpan.FromSeconds(15));
40+
_fixture.AgentLog.WaitForLogLine(AgentLogBase.SpanStreamingServiceStreamConnectedLogLineRegex, TimeSpan.FromSeconds(15));
4141
// Now send the command to make the 8T Span
4242
_fixture.SendCommand("InfiniteTracingTester Make8TSpan");
4343
// Now wait to see that the 8T spans were sent successfully

0 commit comments

Comments
 (0)