Skip to content

Commit 1221270

Browse files
authored
Merge pull request #79 from se7enxweb/copilot/fix-phpunit-job-failure
Fix ConnectionTimeoutException errors in expMongoDBIntegrationTest when MongoDB is unavailable
2 parents 0b4b595 + d16bfa3 commit 1221270

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/tests/lib/ezdb/mongodb/expMongoDBIntegrationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ private static function bootstrapMongo(): void
8787
}
8888
catch ( Exception $e )
8989
{
90+
self::$mongoClient = null;
9091
self::$mongoSkipReason = 'Cannot connect to MongoDB: ' . $e->getMessage();
9192
}
9293
}

0 commit comments

Comments
 (0)