File tree Expand file tree Collapse file tree
MongoDB.Driver.Tests/Core/Connections
SmokeTests/MongoDB.Driver.SmokeTests.Sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ public void Callbacks_turn_on_when_listener_is_added_even_if_no_events(
126126 } ;
127127 ActivitySource . AddActivityListener ( listener ) ;
128128
129- // With listeners registered, these always return true when unless everything is disabled.
129+ // With listeners registered, these always return true unless everything is disabled.
130130 commandHelper . ShouldCallBeforeSending . Should ( ) . Be ( captureCommandSucceeded || captureCommandFailed || logCommands || traceCommands ) ;
131131 commandHelper . ShouldCallAfterSending . Should ( ) . Be ( captureCommandSucceeded || captureCommandFailed || logCommands || traceCommands ) ;
132132 commandHelper . ShouldCallErrorSending . Should ( ) . Be ( captureCommandSucceeded || captureCommandFailed || logCommands || traceCommands ) ;
Original file line number Diff line number Diff line change 1313* limitations under the License.
1414*/
1515
16- using System . Collections . Concurrent ;
1716using System . Collections . Generic ;
1817using System . Diagnostics ;
1918using System . Linq ;
@@ -87,7 +86,7 @@ public void MongoClient_should_not_create_activities_when_tracing_disabled()
8786
8887 private static ActivityListener CreateActivityListener ( out IReadOnlyCollection < Activity > capturedActivities )
8988 {
90- var activities = new ConcurrentBag < Activity > ( ) ;
89+ var activities = new List < Activity > ( ) ;
9190 var listener = new ActivityListener
9291 {
9392 ShouldListenTo = source => source . Name == MongoTelemetry . ActivitySourceName ,
You can’t perform that action at this time.
0 commit comments