From db34e533c4e85f68238dc994a463cb165229e8ae Mon Sep 17 00:00:00 2001 From: Karl-Aksel Puulmann Date: Wed, 20 Nov 2024 10:07:14 +0200 Subject: [PATCH] Update tests --- test/plausible/stats/sampling_cache_test.exs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/plausible/stats/sampling_cache_test.exs b/test/plausible/stats/sampling_cache_test.exs index caede2116..095d8b614 100644 --- a/test/plausible/stats/sampling_cache_test.exs +++ b/test/plausible/stats/sampling_cache_test.exs @@ -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