From dbb062584961888c6abddcb186d0248bec7763b8 Mon Sep 17 00:00:00 2001 From: Stefan Karpinski Date: Tue, 26 Oct 2021 14:31:31 -0500 Subject: [PATCH] fix tests for httpbingo upgrade (#152) This test started failing because httpbingo now serves a 300 response with a location header, which gets followed so the response object ends up being a 200 OK instead of the expected 300. This changes the test to use 200, 400 and 404, which should never redirect. --- test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 0d58422..0b1bab5 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -335,7 +335,7 @@ include("setup.jl") @testset "request API" begin @testset "basic request usage" begin - for status in (200, 300, 400) + for status in [200, 400, 404] url = "$server/status/$status" resp, body = request_body(url) @test resp.url == url