Skip to content

Commit

Permalink
Merge pull request #35 from Studyo/master
Browse files Browse the repository at this point in the history
chore!: update minimal required version of MongoDB.Driver to v2.28.0 …
  • Loading branch information
jbogard authored Aug 12, 2024
2 parents 3aeb228 + 5fe96ac commit 16b9378
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MongoDB.Driver.Core" Version="[2.13.3,3.0)" />
<PackageReference Include="MongoDB.Driver.Core" Version="[2.28.0,3.0)" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="MinVer" Version="5.0.0" PrivateAssets="All" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void Should_start_and_log_failed_activity()
{"update", "my_collection"}
});
startEvent(new CommandStartedEvent("update", command, databaseNamespace, null, 1, connectionId));
stopEvent(new CommandFailedEvent("update", new Exception("Failed"), null, 1, connectionId, TimeSpan.Zero));
stopEvent(new CommandFailedEvent("update", databaseNamespace, new Exception("Failed"), null, 1, connectionId, TimeSpan.Zero));

startFired.ShouldBeTrue();
exceptionFired.ShouldBeTrue();
Expand Down Expand Up @@ -210,7 +210,7 @@ public void Should_record_all_data()
{"update", "my_collection"}
});
startEvent(new CommandStartedEvent("update", command, databaseNamespace, null, 1, connectionId));
stopEvent(new CommandSucceededEvent("update", command, null, 1, connectionId, TimeSpan.Zero));
stopEvent(new CommandSucceededEvent("update", command, databaseNamespace, null, 1, connectionId, TimeSpan.Zero));

startFired.ShouldBeTrue();
stopFired.ShouldBeTrue();
Expand Down Expand Up @@ -258,7 +258,7 @@ public void Should_record_command_text_when_option_set()
var connectionId = new ConnectionId(new ServerId(new ClusterId(), new DnsEndPoint("localhost", 8000)));
var databaseNamespace = new DatabaseNamespace("test");
startEvent(new CommandStartedEvent("update", command, databaseNamespace, null, 1, connectionId));
stopEvent(new CommandSucceededEvent("update", command, null, 1, connectionId, TimeSpan.Zero));
stopEvent(new CommandSucceededEvent("update", command, databaseNamespace, null, 1, connectionId, TimeSpan.Zero));

startFired.ShouldBeTrue();
stopFired.ShouldBeTrue();
Expand Down Expand Up @@ -298,8 +298,8 @@ public void Should_handle_parallel_activities()
});
startEvent(new CommandStartedEvent("update", updateCommand, databaseNamespace, null, 1, connectionId));
startEvent(new CommandStartedEvent("insert", insertCommand, databaseNamespace, null, 2, connectionId));
stopEvent(new CommandSucceededEvent("update", updateCommand, null, 1, connectionId, TimeSpan.Zero));
stopEvent(new CommandSucceededEvent("insert", insertCommand, null, 2, connectionId, TimeSpan.Zero));
stopEvent(new CommandSucceededEvent("update", updateCommand, databaseNamespace, null, 1, connectionId, TimeSpan.Zero));
stopEvent(new CommandSucceededEvent("insert", insertCommand, databaseNamespace, null, 2, connectionId, TimeSpan.Zero));

outerActivity.Stop();

Expand Down

0 comments on commit 16b9378

Please sign in to comment.