Skip to content

Commit 235c30c

Browse files
committed
test: make 'test_action_rebuild_cached_task' more robust
This test failed intermittently if the generated task id happens to contain the string 'bar'
1 parent 25ce307 commit 235c30c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_actions_rebuild_cached_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ def test_rebuild_cached_tasks(run_action):
5151
make_task(label="bar", task_def={"name": "bar"}),
5252
)
5353
out, _ = run_action("rebuild-cached-tasks", graph)
54-
assert "foo" in out
55-
assert "bar" not in out
54+
assert '"name": "foo"' in out
55+
assert '"name": "bar"' not in out

0 commit comments

Comments
 (0)