Skip to content

Commit

Permalink
Show that test is not doing what you might think it does
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwest committed Jun 9, 2022
1 parent 91d7e83 commit cdcaa7c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ void RunTest(Batch<Activity> batch)
Assert.Contains(otlpResource.Attributes, (kvp) => kvp.Key == ResourceSemanticConventions.AttributeServiceName && kvp.Value.ToString().Contains("unknown_service:"));
}

foreach (var scope in request.ResourceSpans.First().ScopeSpans)
var scopeSpans = request.ResourceSpans.First().ScopeSpans;
Assert.Equal(2, scopeSpans.Count);
foreach (var scope in scopeSpans)
{
Assert.Equal(numOfSpans / 2, scope.Spans.Count);
Assert.NotNull(scope.Scope);
Expand Down

0 comments on commit cdcaa7c

Please sign in to comment.