Skip to content

Commit

Permalink
tests: do not check all fields of UndefVarError for egal
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Nov 2, 2023
1 parent 8799660 commit 1e845c5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/distributed_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -971,13 +971,15 @@ wid = workers()[1]
remotecall_fetch(()->T16091, wid)
false
catch ex
((ex::RemoteException).captured::CapturedException).ex === UndefVarError(:T16091)
ex = ((ex::RemoteException).captured::CapturedException).ex
@test (ex::UndefVarError).var === :T16091
end
@test try
remotecall_fetch(identity, wid, T16091)
false
catch ex
((ex::RemoteException).captured::CapturedException).ex === UndefVarError(:T16091)
ex = ((ex::RemoteException).captured::CapturedException).ex
@test (ex::UndefVarError).var === :T16091
end

f16091a() = 1
Expand Down Expand Up @@ -1555,7 +1557,8 @@ try
catch ex
@test isa(ex.captured.ex.exceptions[1].ex, ErrorException)
@test occursin("BoundsError", ex.captured.ex.exceptions[1].ex.msg)
@test ex.captured.ex.exceptions[2].ex == UndefVarError(:DontExistOn1)
ex = ex.captured.ex.exceptions[2].ex
@test (ex::UndefVarError).var === :DontExistOn1
end

let
Expand Down

0 comments on commit 1e845c5

Please sign in to comment.