Skip to content

Commit 74465b4

Browse files
committed
disabled logging for large number of chains in tests where logging
isnt tested
1 parent c6ec64e commit 74465b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/sample.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,13 @@
360360
@testset "Serial sampling" begin
361361
# No dedicated chains type
362362
N = 10_000
363-
chains = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000)
363+
chains = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000; progress=false)
364364
@test chains isa Vector{<:Vector{<:MySample}}
365365
@test length(chains) == 1000
366366
@test all(length(x) == N for x in chains)
367367

368368
Random.seed!(1234)
369-
chains = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000; chain_type=MyChain)
369+
chains = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000; chain_type=MyChain, progress=false)
370370

371371
# Test output type and size.
372372
@test chains isa Vector{<:MyChain}
@@ -382,7 +382,7 @@
382382

383383
# Test reproducibility.
384384
Random.seed!(1234)
385-
chains2 = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000; chain_type=MyChain)
385+
chains2 = sample(MyModel(), MySampler(), MCMCSerial(), N, 1000; chain_type=MyChain, progress=false)
386386
@test all(ismissing(c.as[1]) for c in chains2)
387387
@test all(c1.as[i] == c2.as[i] for (c1, c2) in zip(chains, chains2), i in 2:N)
388388
@test all(c1.bs[i] == c2.bs[i] for (c1, c2) in zip(chains, chains2), i in 1:N)

0 commit comments

Comments
 (0)