From bba97408ce7a4d60a90f706f547b82d62fe710f6 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Mon, 22 Dec 2025 14:03:49 +0100 Subject: [PATCH] Fix up flaky tests The suggest function sleeps for 500ms, so we need sufficient retries to handle both the task execution time and LiveView message processing under low resources. With this I couldn't reproduce anymore in repetead runs. In the other case, funnel saved message may arrive after the test is done and this is when Funnels are listed again. --- test/plausible_web/live/components/combo_box_test.exs | 8 ++++---- test/plausible_web/live/funnel_settings_test.exs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/plausible_web/live/components/combo_box_test.exs b/test/plausible_web/live/components/combo_box_test.exs index 8db4a783ccab..051c86abd96e 100644 --- a/test/plausible_web/live/components/combo_box_test.exs +++ b/test/plausible_web/live/components/combo_box_test.exs @@ -372,8 +372,8 @@ defmodule PlausibleWeb.Live.Components.ComboBoxTest do true } end, - 200, - 20 + 50, + 50 ) end @@ -393,8 +393,8 @@ defmodule PlausibleWeb.Live.Components.ComboBoxTest do true } end, - 200, - 20 + 50, + 50 ) end end diff --git a/test/plausible_web/live/funnel_settings_test.exs b/test/plausible_web/live/funnel_settings_test.exs index 4fcf37d9133e..9a51d59396ee 100644 --- a/test/plausible_web/live/funnel_settings_test.exs +++ b/test/plausible_web/live/funnel_settings_test.exs @@ -1,5 +1,5 @@ defmodule PlausibleWeb.Live.FunnelSettingsTest do - use PlausibleWeb.ConnCase, async: true + use PlausibleWeb.ConnCase, async: false @moduletag :ee_only on_ee do