mirror of
https://github.com/plausible/analytics.git
synced 2024-11-22 02:27:57 +03:00
Update tests
This commit is contained in:
parent
19987ca4c0
commit
db34e533c4
@ -57,6 +57,7 @@ defmodule Plausible.Stats.SamplingCacheTest do
|
||||
|
||||
start_test_cache(test)
|
||||
|
||||
assert SamplingCache.count_all() == 1
|
||||
assert SamplingCache.get(1, force?: true, cache_name: test) == nil
|
||||
assert SamplingCache.get(2, force?: true, cache_name: test) == 22_000_000
|
||||
assert SamplingCache.get(3, force?: true, cache_name: test) == nil
|
||||
@ -72,6 +73,8 @@ defmodule Plausible.Stats.SamplingCacheTest do
|
||||
])
|
||||
|
||||
:ok = SamplingCache.refresh_all(cache_name: test)
|
||||
|
||||
assert SamplingCache.count_all() == 2
|
||||
assert SamplingCache.get(1, force?: true, cache_name: test) == 22_000_000
|
||||
assert SamplingCache.get(2, force?: true, cache_name: test) == 22_000_000
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user