Skip to content

Commit

Permalink
Attempt to make tests pass on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Jul 22, 2024
1 parent b871386 commit 411197c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,13 @@ include("setup.jl")
err = @exception download("https://domain.invalid")
@test err isa RequestError
@test err.code != 0
@test startswith(err.message, "Could not resolve host")
@test startswith(err.message, Sys.isfreebsd() ? "Resolving timed out" : "Could not resolve host")
@test err.response.proto === nothing

err = @exception request("https://domain.invalid", input = IOBuffer("Hi"))
@test err isa RequestError
@test err.code != 0
@test startswith(err.message, "Could not resolve host")
@test startswith(err.message, Sys.isfreebsd() ? "Resolving timed out" : "Could not resolve host")
@test err.response.proto === nothing

err = @exception download("$server/status/404")
Expand Down

0 comments on commit 411197c

Please sign in to comment.