Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix a flaky system test by doubling timeout (#32117)

Alan Guo Xiang Tancfd539a539bf
diff --git a/plugins/chat/spec/system/thread_list/full_page_spec.rb b/plugins/chat/spec/system/thread_list/full_page_spec.rb
index 440aa698596..797fc35834a 100644
--- a/plugins/chat/spec/system/thread_list/full_page_spec.rb
+++ b/plugins/chat/spec/system/thread_list/full_page_spec.rb
@@ -188,7 +188,9 @@ describe "Thread list in side panel | full page", type: :system do
restore_message!(thread_1.original_message, user: other_user)
- expect(thread_list_page).to have_thread(thread_1)
+ try_until_success(timeout: Capybara.default_max_wait_time * 2) do
+ expect(thread_list_page).to have_thread(thread_1)
+ end
end
end