Skip to content

Commit 52e1380

Browse files
committed
Revert the defualt testing mdoe to threading mode for better macOS Big Sur compatibility
1 parent ab96196 commit 52e1380

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ __pycache__/
1414
# virtualenv
1515
env*/
1616
venv/
17+
.venv/
18+
.env/
1719

1820
# codecov / coverage
1921
.coverage

tests/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def get_mock_server_mode() -> str:
2121
"""
2222
mode = os.environ.get("BOLT_PYTHON_MOCK_SERVER_MODE")
2323
if mode is None:
24-
return "multiprocessing"
24+
# We used to use "multiprocessing"" for macOS until Big Sur 11.1
25+
# Since 11.1, the "multiprocessing" mode started failing a lot...
26+
# Therefore, we switched the default mode back to "threading".
27+
return "threading"
2528
else:
2629
return mode

0 commit comments

Comments
 (0)