Skip to content

Commit d1e05cc

Browse files
committed
longer timeout in test_cooldown_standalone
serverSelectionTimeoutMS=1 could cause rare spurious failures
1 parent 8b86f45 commit d1e05cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-mongoc-topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ test_cooldown_standalone (void)
253253
mock_server_run (server);
254254
uri = mongoc_uri_copy (mock_server_get_uri (server));
255255
/* anything less than minHeartbeatFrequencyMS=500 is irrelevant */
256-
mongoc_uri_set_option_as_int32 (uri, "serverSelectionTimeoutMS", 1);
256+
mongoc_uri_set_option_as_int32 (uri, "serverSelectionTimeoutMS", 100);
257257
client = mongoc_client_new_from_uri (uri);
258258
primary_pref = mongoc_read_prefs_new (MONGOC_READ_PRIMARY);
259259

0 commit comments

Comments
 (0)