Skip to content

Commit

Permalink
Add unit test for broken erroshow (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno authored Nov 22, 2023
1 parent 41d1897 commit 1fcc847
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,12 @@ mktempdir() do d
@test occursin(r"^CLIENT_RANDOM [0-9a-f]{64} [0-9a-f]{96}$", read(f, String))
end

# Unit test for MBedTLS errorshow (#274)
let buf = IOBuffer()
Base.display_error(buf, try MbedTLS.mbed_err(1); catch err; err; end, nothing)
@test occursin("Generic error", String(take!(buf)))
end

let
include("clntsrvr/clntsrvr.jl")
end

0 comments on commit 1fcc847

Please sign in to comment.