Skip to content

Commit dbb0625

Browse files
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.
1 parent 2b5dced commit dbb0625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ include("setup.jl")
335335

336336
@testset "request API" begin
337337
@testset "basic request usage" begin
338-
for status in (200, 300, 400)
338+
for status in [200, 400, 404]
339339
url = "$server/status/$status"
340340
resp, body = request_body(url)
341341
@test resp.url == url

0 commit comments

Comments
 (0)