From c506a0418d13068f9677dfdeb443095316271b8a Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Thu, 3 Apr 2025 10:10:00 -0400 Subject: [PATCH] test: make 'test_action_rebuild_cached_task' more robust This test failed intermittently if the generated task id happens to contain the string 'bar' --- test/test_actions_rebuild_cached_tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_actions_rebuild_cached_tasks.py b/test/test_actions_rebuild_cached_tasks.py index 0f6fae4e0..10294f8ba 100644 --- a/test/test_actions_rebuild_cached_tasks.py +++ b/test/test_actions_rebuild_cached_tasks.py @@ -51,5 +51,5 @@ def test_rebuild_cached_tasks(run_action): make_task(label="bar", task_def={"name": "bar"}), ) out, _ = run_action("rebuild-cached-tasks", graph) - assert "foo" in out - assert "bar" not in out + assert '"name": "foo"' in out + assert '"name": "bar"' not in out