File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 88import stat
99import tarfile
1010from pathlib import Path
11- from time import sleep
1211from urllib import request
1312
1413from utils import (
@@ -322,7 +321,6 @@ def handle_test_env() -> None:
322321 env ["SERVER_TYPE" ] = server_type
323322 env ["OCSP_ALGORITHM" ] = ocsp_algo
324323 run_command (f"bash { DRIVERS_TOOLS } /.evergreen/ocsp/setup.sh" , env = env )
325- sleep (5 )
326324
327325 # The mock OCSP responder MUST BE started before the mongod as the mongod expects that
328326 # a responder will be available upon startup.
@@ -339,7 +337,6 @@ def handle_test_env() -> None:
339337 elif opts .quiet :
340338 cmd .append ("-q" )
341339 run_command (cmd , cwd = DRIVERS_TOOLS )
342- sleep (5 )
343340
344341 if SSL != "nossl" :
345342 if not DRIVERS_TOOLS :
Original file line number Diff line number Diff line change 1919import os
2020import sys
2121import unittest
22+ from pathlib import Path
2223
2324import pytest
2425
3839FORMAT = "%(asctime)s %(levelname)s %(module)s %(message)s"
3940logging .basicConfig (format = FORMAT , level = logging .DEBUG )
4041
41- if sys .platform == "win32" :
42- # The non-stapled OCSP endpoint check is slow on Windows.
43- TIMEOUT_MS = 5000
44- else :
45- TIMEOUT_MS = 500
46-
4742
4843def _connect (options ):
49- uri = f"mongodb://localhost:27017/?serverSelectionTimeoutMS={ TIMEOUT_MS } &tlsCAFile={ CA_FILE } &{ options } "
44+ uri = f"mongodb://localhost:27017/?serverSelectionTimeoutMS=5000 &tlsCAFile={ Path ( CA_FILE ). as_posix () } &{ options } "
5045 print (uri )
5146 try :
5247 client = pymongo .MongoClient (uri )
You can’t perform that action at this time.
0 commit comments