Skip to content

Commit ee36c1e

Browse files
committed
Set static mongo port for tests
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 7eb8622 commit ee36c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def get_instance(cls):
392392

393393
def __init__(self):
394394
self._tmpdir = tempfile.mkdtemp()
395-
self._port = random.randint(40000, 50000)
395+
self._port = 27017
396396
self._process = subprocess.Popen(['mongod', '--bind_ip', 'localhost',
397397
'--port', str(self._port),
398398
'--dbpath', self._tmpdir,

0 commit comments

Comments
 (0)