Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b91f77

Browse files
authored
Increase connection timeouts to allow using Atlas shared clusters (#3206)
1 parent bbff3cb commit 4b91f77

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎tests/ConnectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ public function testPingMethod()
350350
'dsn' => env('MONGODB_URI', 'mongodb://127.0.0.1/'),
351351
'database' => 'unittest',
352352
'options' => [
353-
'connectTimeoutMS' => 100,
354-
'serverSelectionTimeoutMS' => 250,
353+
'connectTimeoutMS' => 1000,
354+
'serverSelectionTimeoutMS' => 6000,
355355
],
356356
];
357357

‎tests/config/database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
'dsn' => env('MONGODB_URI', 'mongodb://127.0.0.1/'),
1111
'database' => env('MONGODB_DATABASE', 'unittest'),
1212
'options' => [
13-
'connectTimeoutMS' => 100,
14-
'serverSelectionTimeoutMS' => 250,
13+
'connectTimeoutMS' => 1000,
14+
'serverSelectionTimeoutMS' => 6000,
1515
],
1616
],
1717

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /