Skip to content

Commit 2f97ce5

Browse files
committed
Use 127.0.0.1 instead of localhost for default URI
1 parent 05dd337 commit 2f97ce5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
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://localhost:27017"/>
19+
<env name="MONGODB_URI" value="mongodb://127.0.0.1:27017"/>
2020
<env name="MONGODB_DATABASE" value="phplib_test"/>
2121
</php>
2222

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ public function getNamespace()
4545
*/
4646
public function getUri()
4747
{
48-
return getenv('MONGODB_URI') ?: 'mongodb://localhost:27017';
48+
return getenv('MONGODB_URI') ?: 'mongodb://127.0.0.1:27017';
4949
}
5050
}

0 commit comments

Comments
 (0)