Skip to content

Commit

Permalink
increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeralsing committed Aug 5, 2024
1 parent 26a8052 commit 55552aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Proto.OpenTelemetry.Tests/OpenTelemetryTracingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,15 @@ public async Task ExceptionsAreRecorded()
var (_, activityTraceId) = await Trace(async () =>
{
tracedRoot.Send(testRoot, new TraceMe(SendAs.Invalid));
await Task.Delay(100);
await Task.Delay(500);
}
);

var receiveActivity = _fixture
.GetActivitiesByTraceId(activityTraceId)
.Single(it => it.OperationName.Contains("Receive TraceMe", StringComparison.Ordinal));


receiveActivity.GetStatus().Should().Be(Status.Error);
receiveActivity.Events.Should().HaveCount(1);
receiveActivity.Events.Single().Tags.Where(tag => tag.Key.StartsWith("exception")).Should().NotBeEmpty();
Expand Down

0 comments on commit 55552aa

Please sign in to comment.