Skip to content

Commit 1369179

Browse files
committed
fixup! Simplify tests for any_problems
1 parent 0fccc11 commit 1369179

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/runner.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function gen_runner_code(testfilename, logfilename, test_args)
155155
open($(repr(logfilename)), "w") do io
156156
prettyprint(io, report(flattened_testsets))
157157
end
158-
any_problems(flattened_testsets) && exit(TestReports.TESTS_FAILED)
158+
any_problems(ts) && exit(TestReports.TESTS_FAILED)
159159
"""
160160
return runner_code
161161
end

test/testsets.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ end
137137

138138
@testset "any_problems" begin
139139
pass = Pass(Symbol(), nothing, nothing, nothing)
140-
fail = Fail(Symbol(), nothing, nothing, nothing, LineNumberNode(1))
140+
fail = Fail(Symbol(), "false", nothing, nothing, LineNumberNode(1))
141141

142142
@testset "results" begin
143143
@test any_problems(pass) === false

0 commit comments

Comments
 (0)