Skip to content

Commit e6314b5

Browse files
committed
fix: return dict from 'status_task_batched' when testing
Otherwise this breaks `taskgraph test-action-callback` as we're expecting a dict rather than `NoneType` throughout the code base.
1 parent 89617ed commit e6314b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/taskgraph/util/taskcluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def status_task_batched(task_ids, use_proxy=False):
339339
"""
340340
if testing:
341341
logger.info(f"Would have gotten status for {len(task_ids)} tasks.")
342-
return
342+
return {}
343343
endpoint = liburls.api(get_root_url(use_proxy), "queue", "v1", "tasks/status")
344344
statuses = {}
345345
continuation_token = None

0 commit comments

Comments
 (0)