mirror of
https://github.com/plausible/analytics.git
synced 2024-12-22 17:11:36 +03:00
Fix flaky test: wait till ets is emptied (#3755)
* Fix flaky test: wait till ets is emptied * fixup
This commit is contained in:
parent
9ad5ecebc2
commit
6ce4d19931
@ -21,9 +21,9 @@ defmodule Plausible.RateLimitTest do
|
||||
assert expires_at >= System.system_time(:millisecond)
|
||||
assert expires_at <= System.system_time(:millisecond) + 50
|
||||
|
||||
:timer.sleep(150)
|
||||
|
||||
assert :ets.tab2list(@table) == []
|
||||
Plausible.TestUtils.eventually(fn ->
|
||||
{:ets.tab2list(@table) == [], :done}
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user