Skip to content

Commit 8e89680

Browse files
committed
Reduce default server selection timeout for tests
This should avoid hanging test builds if mongod fails to start.
1 parent 9d218a7 commit 8e89680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<php>
1818
<ini name="error_reporting" value="-1"/>
19-
<env name="MONGODB_URI" value="mongodb://127.0.0.1:27017"/>
19+
<env name="MONGODB_URI" value="mongodb://127.0.0.1:27017/?serverSelectionTimeoutMS=100"/>
2020
<env name="MONGODB_DATABASE" value="phplib_test"/>
2121
</php>
2222

0 commit comments

Comments
 (0)