Skip to content

Commit 08a47b5

Browse files
committed
FIX(CI): TaskContext TC PASSES in Travis ...
prbably due to low parallelization.
1 parent e87f5ec commit 08a47b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_graphtik.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,14 @@ def check_task_context():
323323
)
324324
iop = iter(pipe.ops)
325325

326-
print(_exe_params)
326+
print(_exe_params, os.cpu_count())
327327
err = None
328328
if _exe_params.proc and _exe_params.marshal:
329329
err = Exception("^Error sending result")
330-
elif _exe_params.parallel:
330+
elif _exe_params.parallel and _exe_params.marshal:
331+
err = AssertionError("^Corrupted task-context")
332+
elif _exe_params.parallel and not os.environ.get("TRAVIS"):
333+
# Travis has low parallelism and error does not surface
331334
err = AssertionError("^Corrupted task-context")
332335

333336
if err:

0 commit comments

Comments
 (0)