Skip to content

Commit db8ac11

Browse files
committed
Fix tests with single thread and single process
1 parent d6fe92d commit db8ac11

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/runtests.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ include("interface.jl")
141141

142142
# Unexpected order of arguments.
143143
str = "Number of chains (10) is greater than number of samples per chain (5)"
144-
@test_logs (:warn, str) sample(MyModel(), MySampler(), MCMCThreads(), 5, 10;
145-
chain_type = MyChain)
144+
@test_logs (:warn, str) match_mode=:any sample(MyModel(), MySampler(),
145+
MCMCThreads(), 5, 10;
146+
chain_type = MyChain)
146147

147148
# Suppress output.
148149
logs, _ = collect_test_logs(; min_level=Logging.LogLevel(-1)) do
@@ -196,8 +197,9 @@ include("interface.jl")
196197

197198
# Unexpected order of arguments.
198199
str = "Number of chains (10) is greater than number of samples per chain (5)"
199-
@test_logs (:warn, str) sample(MyModel(), MySampler(), MCMCDistributed(), 5, 10;
200-
chain_type = MyChain)
200+
@test_logs (:warn, str) match_mode=:any sample(MyModel(), MySampler(),
201+
MCMCDistributed(), 5, 10;
202+
chain_type = MyChain)
201203

202204
# Suppress output.
203205
logs, _ = collect_test_logs(; min_level=Logging.LogLevel(-1)) do

0 commit comments

Comments
 (0)