From 4b91f7731a98b64bb4d93c11a5f5cb9ef7340ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Thu, 14 Nov 2024 21:19:52 +0100 Subject: [PATCH] Increase connection timeouts to allow using Atlas shared clusters (#3206) --- tests/ConnectionTest.php | 4 ++-- tests/config/database.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ConnectionTest.php b/tests/ConnectionTest.php index affb6bd8a..1efd17be0 100644 --- a/tests/ConnectionTest.php +++ b/tests/ConnectionTest.php @@ -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, ], ]; diff --git a/tests/config/database.php b/tests/config/database.php index 275dce61a..8a22d766c 100644 --- a/tests/config/database.php +++ b/tests/config/database.php @@ -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, ], ],