Skip to content

Commit

Permalink
Fix loopback tests (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Aug 25, 2022
1 parent 88a1e9f commit 0c2a782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/loopback.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Base.readavailable(fio::FunctionIO) = (call(fio); readavailable(fio.buf))
Base.readavailable(lb::Loopback) = readavailable(lb.io)
Base.unsafe_read(lb::Loopback, p::Ptr, n::Integer) = unsafe_read(lb.io, p, n)

HTTP.IOExtras.tcpsocket(::Loopback) = Sockets.TCPSocket()
HTTP.IOExtras.tcpsocket(::Loopback) = Sockets.connect("httpbin.org", 80)

lbreq(req, headers, body; method="GET", kw...) =
HTTP.request(method, "http://test/$req", headers, body; config..., kw...)
Expand Down

0 comments on commit 0c2a782

Please sign in to comment.