We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 159ee9d commit 71dcc6bCopy full SHA for 71dcc6b
1 file changed
test/OpenTelemetry.Instrumentation.AspNetCore.Tests/MetricTests.cs
@@ -76,6 +76,11 @@ void ProcessExport(Batch<MetricItem> batch)
76
response.EnsureSuccessStatusCode();
77
}
78
79
+ // We need to let End callback execute as it is executed AFTER response was returned.
80
+ // In unit tests environment there may be a lot of parallel unit tests executed, so
81
+ // giving some breezing room for the End callback to complete
82
+ await Task.Delay(TimeSpan.FromSeconds(1));
83
+
84
// Invokes the TestExporter which will invoke ProcessExport
85
processor.PullRequest();
86
0 commit comments