Skip to content

Commit 8d8c928

Browse files
committed
Don't pun on getindex.
1 parent dc61eec commit 8d8c928

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/ParallelTestRunner.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ end
7878
abstract type AbstractTestRecord end
7979

8080
struct TestRecord <: AbstractTestRecord
81-
value::DefaultTestSet
81+
testset::DefaultTestSet
8282
output::String # captured stdout/stderr
8383

8484
# stats
@@ -92,10 +92,6 @@ function memory_usage(rec::TestRecord)
9292
return rec.rss
9393
end
9494

95-
function Base.getindex(rec::TestRecord)
96-
return rec.value
97-
end
98-
9995

10096
#
10197
# overridable I/O context for pretty-printing
@@ -764,7 +760,7 @@ function runtests(mod::Module, ARGS; test_filter = Returns(true), RecordType = T
764760
test_name, wrkr, record = msg[2], msg[3], msg[4]
765761

766762
clear_status()
767-
if anynonpass(record[])
763+
if anynonpass(record.testset)
768764
print_test_failed(record, wrkr, test_name, io_ctx)
769765
else
770766
print_test_finished(record, wrkr, test_name, io_ctx)
@@ -979,7 +975,7 @@ function runtests(mod::Module, ARGS; test_filter = Returns(true), RecordType = T
979975
push!(completed_tests, testname)
980976

981977
if result isa AbstractTestRecord
982-
testset = result[]::DefaultTestSet
978+
testset = result.testset
983979
historical_durations[testname] = stop - start
984980
else
985981
# If this test raised an exception that means the test runner itself had some problem,

0 commit comments

Comments
 (0)