Skip to content

Commit

Permalink
adjust the test and add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
escapewindow committed Jan 18, 2018
1 parent bb264a5 commit 9a4c22c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scriptworker/test/test_cot_verify.py
Expand Up @@ -632,7 +632,10 @@ def fake_find(task, name, _):
length = chain.context.config['max_chain_length']
await cotverify.build_task_dependencies(
chain, {},
':'.join([str(x) for x in range(-length, length)]),
# range(0, length) gives `max_chain_length` parts, but we're
# measuring colons which are at `max_chain_length - 1`.
# To go over, we have to add 2.
':'.join([str(x) for x in range(0, length + 2)]),
'task_id',
)
with pytest.raises(CoTError):
Expand Down

0 comments on commit 9a4c22c

Please sign in to comment.