Skip to content

Commit bea35ec

Browse files
committed
Fix tests with suppressed output
1 parent 4d14c15 commit bea35ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ include("interface.jl")
105105
logs, _ = collect_test_logs(; min_level=Logging.LogLevel(-1)) do
106106
sample(MyModel(), MySampler(), 100; progress = false, sleepy = true)
107107
end
108-
@test isempty(logs)
108+
@test all(l.level > Logging.LogLevel(-1) for l in logs)
109109
end
110110
end
111111

@@ -144,7 +144,7 @@ include("interface.jl")
144144
sample(MyModel(), MySampler(), MCMCThreads(), 10_000, 1000;
145145
progress = false, chain_type = MyChain)
146146
end
147-
@test isempty(logs)
147+
@test all(l.level > Logging.LogLevel(-1) for l in logs)
148148
end
149149
end
150150

@@ -194,7 +194,7 @@ include("interface.jl")
194194
sample(MyModel(), MySampler(), MCMCDistributed(), 10_000, 100;
195195
progress = false, chain_type = MyChain)
196196
end
197-
@test isempty(logs)
197+
@test all(l.level > Logging.LogLevel(-1) for l in logs)
198198
end
199199

200200
@testset "Chain constructors" begin

0 commit comments

Comments
 (0)