Skip to content

Commit

Permalink
Attempting to fix AutoFlushActivityProcessor test.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlanch committed Dec 15, 2022
1 parent 0131ac1 commit f567e02
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void AutoFlushActivityProcessor_FlushAfterLocalServerSideRootSpans_EndMat

using var source = new ActivitySource(sourceName);
using var activity = source.StartActivity("name", ActivityKind.Server);
activity.Dispose();
activity.Stop();

mockExporting.Protected().Verify("OnForceFlush", Times.Once(), 5_000);
}
Expand All @@ -59,7 +59,7 @@ public void AutoFlushActivityProcessor_FlushAfterLocalServerSideRootSpans_EndNon

using var source = new ActivitySource(sourceName);
using var activity = source.StartActivity("name", ActivityKind.Client);
activity.Dispose();
activity.Stop();

mockExporting.Protected().Verify("OnForceFlush", Times.Never(), It.IsAny<int>());
}
Expand All @@ -78,7 +78,7 @@ public void AutoFlushActivityProcessor_PredicateThrows_DoesNothing()

using var source = new ActivitySource(sourceName);
using var activity = source.StartActivity("name", ActivityKind.Server);
activity.Dispose();
activity.Stop();

mockExporting.Protected().Verify("OnForceFlush", Times.Never(), 5_000);
}
Expand Down

0 comments on commit f567e02

Please sign in to comment.