Skip to content

Commit 777367b

Browse files
test: make test less stochastic
1 parent 1872d78 commit 777367b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cache_macro.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ end
3030

3131
set_limit!(f1, 10)
3232
@test get_limit(f1) == 10
33+
SymbolicUtils.set_retain_fraction!(f1, 0.1)
34+
@test SymbolicUtils.get_retain_fraction(f1) == 0.1
3335
for i in 1:8
3436
xx = setmetadata(xx, Int, i)
3537
f1(xx)
@@ -56,8 +58,6 @@ end
5658
@test length(cache) == 0
5759
stats = SymbolicUtils.get_stats(f1)
5860
@test stats.hits == stats.misses == stats.clears == 0
59-
SymbolicUtils.set_retain_fraction!(f1, 0.1)
60-
@test SymbolicUtils.get_retain_fraction(f1) == 0.1
6161
@test SymbolicUtils.is_caching_enabled(f1)
6262
SymbolicUtils.toggle_caching!(f1, false)
6363
@test !SymbolicUtils.is_caching_enabled(f1)

0 commit comments

Comments
 (0)