Skip to content

Commit

Permalink
Increase connection timeouts to allow using Atlas shared clusters (#3206
Browse files Browse the repository at this point in the history
)
  • Loading branch information
GromNaN authored Nov 14, 2024
1 parent bbff3cb commit 4b91f77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ public function testPingMethod()
'dsn' => env('MONGODB_URI', 'mongodb://127.0.0.1/'),
'database' => 'unittest',
'options' => [
'connectTimeoutMS' => 100,
'serverSelectionTimeoutMS' => 250,
'connectTimeoutMS' => 1000,
'serverSelectionTimeoutMS' => 6000,
],
];

Expand Down
4 changes: 2 additions & 2 deletions tests/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
'dsn' => env('MONGODB_URI', 'mongodb://127.0.0.1/'),
'database' => env('MONGODB_DATABASE', 'unittest'),
'options' => [
'connectTimeoutMS' => 100,
'serverSelectionTimeoutMS' => 250,
'connectTimeoutMS' => 1000,
'serverSelectionTimeoutMS' => 6000,
],
],

Expand Down

0 comments on commit 4b91f77

Please sign in to comment.