Fix flaky test: wait till ets is emptied (#3755)

* Fix flaky test: wait till ets is emptied

* fixup
This commit is contained in:
hq1 2024-02-07 08:59:00 +01:00 committed by GitHub
parent 9ad5ecebc2
commit 6ce4d19931
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,9 +21,9 @@ defmodule Plausible.RateLimitTest do
assert expires_at >= System.system_time(:millisecond) assert expires_at >= System.system_time(:millisecond)
assert expires_at <= System.system_time(:millisecond) + 50 assert expires_at <= System.system_time(:millisecond) + 50
:timer.sleep(150) Plausible.TestUtils.eventually(fn ->
{:ets.tab2list(@table) == [], :done}
assert :ets.tab2list(@table) == [] end)
end end
end end