Update tests

This commit is contained in:
Karl-Aksel Puulmann 2024-11-20 10:07:14 +02:00
parent 19987ca4c0
commit db34e533c4

View File

@ -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