Skip to content

Commit 6a5c4ac

Browse files
committed
Restore is_xdist_controller
1 parent 08a3b69 commit 6a5c4ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/syrupy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from syrupy.report import SnapshotReport
2121
from syrupy.session import ItemStatus, SnapshotSession
2222
from syrupy.types import PropertyFilter, PropertyMatcher, PropertyPath, SerializableData
23-
from syrupy.utils import is_xdist_worker
23+
from syrupy.utils import is_xdist_controller, is_xdist_worker
2424
import voluptuous as vol
2525
import voluptuous_serialize
2626

@@ -380,6 +380,8 @@ def override_syrupy_finish(self: SnapshotSession) -> int:
380380
indent=2,
381381
)
382382
return exitstatus
383+
if is_xdist_controller():
384+
return exitstatus
383385

384386
worker_count = None
385387
try:

0 commit comments

Comments
 (0)