Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Chris Foster <chris42f@gmail.com>
  • Loading branch information
JeffBezanson and c42f authored Aug 8, 2019
1 parent 6acf497 commit 3ac876c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stdlib/Distributed/test/distributed_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ end # full-test

let t = @task 42
schedule(t, ErrorException(""), error=true)
@test_throws FailedTaskException Base.wait(t)
@test_throws FailedTaskException(t) Base.wait(t)
end

# issue #8207
Expand Down
2 changes: 1 addition & 1 deletion stdlib/Serialization/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ end
struct MyErrorTypeTest <: Exception end
create_serialization_stream() do s # user-defined type array
t = Task(()->throw(MyErrorTypeTest()))
@test_throws FailedTaskException Base.wait(schedule(t))
@test_throws FailedTaskException(t) Base.wait(schedule(t))
@test isa(t.exception, MyErrorTypeTest)
serialize(s, t)
seek(s, 0)
Expand Down
2 changes: 1 addition & 1 deletion test/worlds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ h265() = true
loc_h265 = "$(@__FILE__):$(@__LINE__() - 1)"
@test h265()
@test_throws MethodError put_n_take!(h265, ())
@test_throws FailedTaskException fetch(t265)
@test_throws FailedTaskException(t265) fetch(t265)
@test istaskdone(t265)
let ex = t265.exception
@test ex isa MethodError
Expand Down

0 comments on commit 3ac876c

Please sign in to comment.