Skip to content

Commit 4a1c46a

Browse files
committed
fix tests
1 parent e487997 commit 4a1c46a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/MongoDB.Driver.Tests/Core/Operations/AsyncCursorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ private void AssertExpectedSessionReferenceCount(ICoreSessionHandle session, IAs
693693
{
694694
var cursorImplementation = (AsyncCursor<BsonDocument>)cursor;
695695
var cursorId = cursorImplementation._cursorId();
696-
var expectedReferenceCount = cursorId == 0 ? 2 : 3; // one from the session, and one from the cursor
696+
var expectedReferenceCount = cursorId == 0 ? 1 : 2; // one from the session, and one from the cursor
697697
session.ReferenceCount().Should().Be(expectedReferenceCount);
698698
}
699699

0 commit comments

Comments
 (0)