Skip to content

Commit ae51cc4

Browse files
A. Jesse Jiryu Davisbehackett
authored andcommitted
Use 'localhost' interface, avoid weird auth error in test_common
1 parent ff12224 commit ae51cc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from pymongo.errors import ConfigurationError, OperationFailure
2424

2525

26-
host = os.environ.get("DB_IP", socket.gethostname())
26+
host = os.environ.get("DB_IP", 'localhost')
2727
port = int(os.environ.get("DB_PORT", 27017))
2828
pair = '%s:%d' % (host, port)
2929

0 commit comments

Comments
 (0)