Skip to content

Commit b2f5e4c

Browse files
committed
Adapt to upstream change in Test.DefaultTestSet
1 parent 8083827 commit b2f5e4c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/ParallelTestRunner.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,9 @@ function runtests(ARGS; testfilter = Returns(true), RecordType = TestRecord,
460460
end
461461
end
462462

463+
# construct a testset to render the test results
464+
o_ts = Test.DefaultTestSet("Overall")
463465
# run tasks
464-
t0 = now()
465466
results = []
466467
all_tasks = Task[]
467468
try
@@ -586,12 +587,13 @@ function runtests(ARGS; testfilter = Returns(true), RecordType = TestRecord,
586587
schedule(stdin_monitor, InterruptException(); error = true)
587588
end
588589
end
589-
t1 = now()
590+
t1 = time()
590591

591-
# construct a testset to render the test results
592-
o_ts = Test.DefaultTestSet("Overall")
593-
o_ts.time_start = Dates.datetime2unix(t0)
594-
o_ts.time_end = Dates.datetime2unix(t1)
592+
if VERSION < v"1.13.0-DEV.1037"
593+
o_ts.time_end = t1
594+
else
595+
@atomic o_ts.time_end = t1
596+
end
595597
with_testset(o_ts) do
596598
completed_tests = Set{String}()
597599
for (testname, res) in results

0 commit comments

Comments
 (0)