Commit 0e0de0e 1 parent c0655f6 commit 0e0de0e Copy full SHA for 0e0de0e
File tree 1 file changed +4
-2
lines changed
tracer/test/Datadog.Trace.Tests/Telemetry
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
- // <copyright file="TelemetryControllerSchedulerTests.cs" company="Datadog">
1
+ // <copyright file="TelemetryControllerSchedulerTests.cs" company="Datadog">
2
2
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License.
3
3
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc.
4
4
// </copyright>
@@ -162,6 +162,8 @@ public async Task TypicalLoop_WithLogsQueueTrigger()
162
162
delayMutex . Wait ( ) ;
163
163
queueTcs . SetResult ( true ) ; // this triggers the queue task
164
164
165
+ await waitTask ;
166
+
165
167
// t = 15s;
166
168
_scheduler . ShouldFlushTelemetry . Should ( ) . BeFalse ( ) ; // not a complete interval
167
169
_scheduler . ShouldFlushRedactedErrorLogs . Should ( ) . BeTrue ( ) ; // triggered by queue
@@ -180,7 +182,7 @@ public async Task TypicalLoop_WithLogsQueueTrigger()
180
182
// t = 125s;
181
183
_scheduler . ShouldFlushTelemetry . Should ( ) . BeTrue ( ) ;
182
184
_scheduler . ShouldFlushRedactedErrorLogs . Should ( ) . BeTrue ( ) ;
183
- }
185
+ }
184
186
185
187
[ Fact ]
186
188
public async Task DoesNotFlushTelemetryUntilInitialized ( )
You can’t perform that action at this time.
0 commit comments