Skip to content

Commit f4fc968

Browse files
committed
fix test failure on 3.2 due to change in how server reports n for get last error after an insert.
1 parent d548bab commit f4fc968

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MongoDB.DriverUnitTests/CommandResults/GetLastErrorResultTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public void TestInsert()
4747
#pragma warning restore
4848
Assert.IsFalse(result.HasLastErrorMessage);
4949
Assert.IsFalse(result.UpdatedExisting);
50-
Assert.AreEqual(0, result.DocumentsAffected);
50+
// server 3.2 has changed the GLE results for "n" on insert.
51+
Assert.That(result.DocumentsAffected, Is.EqualTo(0).Or.EqualTo(1));
5152
}
5253
}
5354

0 commit comments

Comments
 (0)