Преглед изворни кода

Improve unit test to not rely on mongodb server version dependent message

Rob Williams пре 8 година
родитељ
комит
5942a237c8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tests/Alcaeus/MongoDbAdapter/Mongo/MongoClientTest.php

+ 1 - 1
tests/Alcaeus/MongoDbAdapter/Mongo/MongoClientTest.php

@@ -74,7 +74,7 @@ class MongoClientTest extends TestCase
     public function testGetHostsExceptionHandling()
     {
         $this->expectException(\MongoConnectionException::class);
-        $this->expectExceptionMessageRegExp('/No suitable servers found/');
+        $this->expectExceptionMessageRegExp('/fake_host/');
 
         $client = $this->getClient(null, 'mongodb://fake_host');
         $client->getHosts();