Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Fix flaky site removal test (#6653)
Uku Taht8b15b76d672b
diff --git a/test/plausible/site/site_removal_test.exs b/test/plausible/site/site_removal_test.exsindex 2aff9340de..baacd32d51 100644--- a/test/plausible/site/site_removal_test.exs+++ b/test/plausible/site/site_removal_test.exs@@ -135,8 +135,15 @@ defmodule Plausible.Site.SiteRemovalTest doassert {:ok, _} = Removal.run(site, cache_name: test)- refute Plausible.Site.Cache.get(site.domain, cache_name: test, force?: true)- refute Plausible.Site.Cache.get(site.domain_changed_from, cache_name: test, force?: true)+ assert eventually(fn ->+ current_domain =+ Plausible.Site.Cache.get(site.domain, cache_name: test, force?: true)++ previous_domain =+ Plausible.Site.Cache.get(site.domain_changed_from, cache_name: test, force?: true)++ {is_nil(current_domain) and is_nil(previous_domain), :ok}+ end)enddefp start_test_cache(cache_name) do