Browse Source

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

Rob Williams 8 years ago
parent
commit
5942a237c8
1 changed files with 1 additions and 1 deletions
  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();