Skip to content

Commit 6577d6c

Browse files
committed
CSHARP-1834: Fix a test that was using too small a value for MaxStaleness.
1 parent 0e4a823 commit 6577d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ public void Execute_should_find_all_the_documents_matching_the_query_when_max_st
427427
RequireServer.Check().Supports(Feature.MaxStaleness);
428428
EnsureTestData();
429429
var subject = new FindOperation<BsonDocument>(_collectionNamespace, BsonDocumentSerializer.Instance, _messageEncoderSettings);
430-
var readPreference = new ReadPreference(ReadPreferenceMode.SecondaryPreferred, maxStaleness: TimeSpan.FromSeconds(30));
430+
var readPreference = new ReadPreference(ReadPreferenceMode.SecondaryPreferred, maxStaleness: TimeSpan.FromSeconds(90));
431431

432432
// the count could be short temporarily until replication catches up
433433
List<BsonDocument> result = null;

0 commit comments

Comments
 (0)