diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php
index 963dbe8..dcdff98 100644
--- a/core/tests/Drupal/Tests/BrowserTestBase.php
+++ b/core/tests/Drupal/Tests/BrowserTestBase.php
@@ -349,7 +349,7 @@ protected function initMink() {
     $driver = $this->getDefaultDriverInstance();
 
     if ($driver instanceof GoutteDriver) {
-      $driver->getClient()->setClient(\Drupal::httpClient());
+      $driver->getClient()->setClient(\Drupal::service('http_client_factory')->fromOptions(['verify' => FALSE]));
     }
 
     $session = new Session($driver);
