Skip to content

Commit

Permalink
Merge pull request #218 from flcdrg/fix-deprecated-warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
flcdrg authored Mar 4, 2023
2 parents 9bf521e + 8cc731f commit 943c853
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions Verify.MongoDB.Tests/IntegrationTests.FindAsync.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@
{
Document: {
cursor: {
id: 0,
id: {
$numberLong: 0
},
ns: VerifyTests.docs
},
ok: 1.0
ok: {
$numberDouble: 1.0
}
},
Type: Succeeded,
Command: find,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@
},
{
Document: {
n: 1,
ok: 1.0
n: {
$numberInt: 1
},
ok: {
$numberDouble: 1.0
}
},
Type: Succeeded,
Command: insert,
Expand Down
2 changes: 1 addition & 1 deletion Verify.MongoDB/StartedLogEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public StartedLogEntry(
{
Database = databaseName;

var jsonWriterSettings = new JsonWriterSettings {OutputMode = JsonOutputMode.Strict};
var jsonWriterSettings = new JsonWriterSettings {OutputMode = JsonOutputMode.CanonicalExtendedJson};
Document = JObject.Parse(document.ToJson(jsonWriterSettings));
}
}
2 changes: 1 addition & 1 deletion Verify.MongoDB/SucceededLogEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public SucceededLogEntry(
{
Duration = duration;

var jsonWriterSettings = new JsonWriterSettings {OutputMode = JsonOutputMode.Strict};
var jsonWriterSettings = new JsonWriterSettings {OutputMode = JsonOutputMode.CanonicalExtendedJson };
Document = JObject.Parse(document.ToJson(jsonWriterSettings));
}
}

0 comments on commit 943c853

Please sign in to comment.