Add eventually/1 call to flaky test (#3054)
This commit is contained in:
parent
02783885c7
commit
f0bdf872b5
|
|
@ -158,7 +158,10 @@ defmodule Plausible.Workers.ImportGoogleAnalyticsTest do
|
||||||
api_stub
|
api_stub
|
||||||
)
|
)
|
||||||
|
|
||||||
assert Plausible.Stats.Clickhouse.imported_pageview_count(site) == 0
|
assert eventually(fn ->
|
||||||
|
count = Plausible.Stats.Clickhouse.imported_pageview_count(site)
|
||||||
|
{count == 0, count}
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "sends email to owner after failed import" do
|
test "sends email to owner after failed import" do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue