mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 03:04:43 +03:00
Fix flaky rate_limit test (#3615)
This commit is contained in:
parent
7b5c20db17
commit
26809bfd2e
@ -18,7 +18,7 @@ defmodule Plausible.RateLimitTest do
|
||||
assert {:allow, 1} = RateLimit.check_rate(@table, key, scale, limit)
|
||||
assert [{{^key, _bucket}, _count = 1, expires_at}] = :ets.tab2list(@table)
|
||||
|
||||
assert expires_at > System.system_time(:millisecond)
|
||||
assert expires_at >= System.system_time(:millisecond)
|
||||
assert expires_at <= System.system_time(:millisecond) + 50
|
||||
|
||||
:timer.sleep(150)
|
||||
|
Loading…
Reference in New Issue
Block a user