From 4ecac8d53887f76d862866e0504697043e8b3618 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Tue, 26 Oct 2021 18:47:50 -0400 Subject: [PATCH] fix tests for httpbingo upgrade (#152) (#154) 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. (cherry picked from commit dbb062584961888c6abddcb186d0248bec7763b8) Co-authored-by: Stefan Karpinski --- test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index fd4bb20..8f2ce61 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -317,7 +317,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