From 8c75f89876a8ee7f5e2ebfe644f55f7071435279 Mon Sep 17 00:00:00 2001 From: Sam Vevang Date: Thu, 20 Jul 2023 09:21:59 -0500 Subject: [PATCH] Fix flickering test --- test/models/publishing_pipeline_state_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/models/publishing_pipeline_state_test.rb b/test/models/publishing_pipeline_state_test.rb index 33e608fb0..5781b692c 100644 --- a/test/models/publishing_pipeline_state_test.rb +++ b/test/models/publishing_pipeline_state_test.rb @@ -153,8 +153,8 @@ assert_equal [pa1, pa2].sort, PublishingPipelineState.expired_pipelines.sort PublishingPipelineState.expire_pipelines! - assert_equal ["created", "expired"], PublishingPipelineState.latest_pipeline(podcast).map(&:status) - assert_equal ["created", "expired"], PublishingPipelineState.latest_pipeline(podcast2).map(&:status) + assert_equal ["created", "expired"].sort, PublishingPipelineState.latest_pipeline(podcast).map(&:status).sort + assert_equal ["created", "expired"].sort, PublishingPipelineState.latest_pipeline(podcast2).map(&:status).sort # All pipelines are in a terminal state # There is nothing running: