Skip to content

Commit ad5d0fb

Browse files
authored
test: use match_mode=:any in PackageBundler log tests (#50)
1 parent 077bcdd commit ad5d0fb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/packagebundler.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ end
114114
bundle = "bundle.nomanifest"
115115
bundle_env = joinpath(pkg1, bundle)
116116
out = tempname()
117-
@test_logs (:warn,) JuliaHub._PackageBundler.bundle(
117+
# Using match_mode=:any, since it's possible for the Pkg operations to produce other additional
118+
# log messages, breaking the tests.
119+
@test_logs (:warn,) match_mode = :any JuliaHub._PackageBundler.bundle(
118120
bundle_env;
119121
output=out,
120-
verbose=false,
122+
verbose=false
121123
)
122124
dir = mktempdir()
123125
Tar.extract(out, dir)
@@ -169,7 +171,9 @@ end
169171
bundle = "bundle.noenv"
170172
bundle_env = joinpath(pkg1, bundle)
171173
out = tempname()
172-
@test_logs (:warn,) JuliaHub._PackageBundler.bundle(
174+
# Using match_mode=:any, since it's possible for the Pkg operations to produce other additional
175+
# log messages, breaking the tests.
176+
@test_logs (:warn,) match_mode = :any JuliaHub._PackageBundler.bundle(
173177
bundle_env;
174178
output=out,
175179
verbose=false,

0 commit comments

Comments
 (0)