From 411197c8ce485b4ab4e47bf94a15c78925df44ad Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Tue, 23 Jul 2024 00:49:09 +0200 Subject: [PATCH] Attempt to make tests pass on FreeBSD --- test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 76db9e8..b186e1b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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")