|
5 | 5 |
|
6 | 6 | Random.seed!(1234)
|
7 | 7 | N = 1_000
|
8 |
| - chain = sample(MyModel(), MySampler(), N; sleepy=true, loggers=true) |
| 8 | + chain = sample(MyModel(), MySampler(), N; loggers=true) |
9 | 9 |
|
10 | 10 | @test length(LOGGERS) == 1
|
11 | 11 | logger = first(LOGGERS)
|
|
42 | 42 |
|
43 | 43 | logger = JunoProgressLogger()
|
44 | 44 | Logging.with_logger(logger) do
|
45 |
| - sample(MyModel(), MySampler(), N; sleepy=true, loggers=true) |
| 45 | + sample(MyModel(), MySampler(), N; loggers=true) |
46 | 46 | end
|
47 | 47 |
|
48 | 48 | @test length(LOGGERS) == 1
|
|
60 | 60 |
|
61 | 61 | Random.seed!(1234)
|
62 | 62 | N = 10
|
63 |
| - sample(MyModel(), MySampler(), N; sleepy=true, loggers=true) |
| 63 | + sample(MyModel(), MySampler(), N; loggers=true) |
64 | 64 |
|
65 | 65 | @test length(LOGGERS) == 1
|
66 | 66 | logger = first(LOGGERS)
|
|
82 | 82 |
|
83 | 83 | logger = Logging.ConsoleLogger(stderr, Logging.LogLevel(-1))
|
84 | 84 | Logging.with_logger(logger) do
|
85 |
| - sample(MyModel(), MySampler(), N; sleepy=true, loggers=true) |
| 85 | + sample(MyModel(), MySampler(), N; loggers=true) |
86 | 86 | end
|
87 | 87 |
|
88 | 88 | @test length(LOGGERS) == 1
|
|
92 | 92 |
|
93 | 93 | @testset "Suppress output" begin
|
94 | 94 | logs, _ = collect_test_logs(; min_level=Logging.LogLevel(-1)) do
|
95 |
| - sample(MyModel(), MySampler(), 100; progress=false, sleepy=true) |
| 95 | + sample(MyModel(), MySampler(), 100; progress=false) |
96 | 96 | end
|
97 | 97 | @test all(l.level > Logging.LogLevel(-1) for l in logs)
|
98 | 98 |
|
|
103 | 103 | @test !AbstractMCMC.PROGRESS[]
|
104 | 104 |
|
105 | 105 | logs, _ = collect_test_logs(; min_level=Logging.LogLevel(-1)) do
|
106 |
| - sample(MyModel(), MySampler(), 100; sleepy=true) |
| 106 | + sample(MyModel(), MySampler(), 100) |
107 | 107 | end
|
108 | 108 | @test all(l.level > Logging.LogLevel(-1) for l in logs)
|
109 | 109 |
|
|
462 | 462 | end
|
463 | 463 |
|
464 | 464 | @testset "Chain constructors" begin
|
465 |
| - chain1 = sample(MyModel(), MySampler(), 100; sleepy=true) |
466 |
| - chain2 = sample(MyModel(), MySampler(), 100; sleepy=true, chain_type=MyChain) |
| 465 | + chain1 = sample(MyModel(), MySampler(), 100) |
| 466 | + chain2 = sample(MyModel(), MySampler(), 100; chain_type=MyChain) |
467 | 467 |
|
468 | 468 | @test chain1 isa Vector{<:MySample}
|
469 | 469 | @test chain2 isa MyChain
|
|
0 commit comments