Skip to content

Commit

Permalink
Fix tests on julia 1.0, add julia compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed May 17, 2021
1 parent 72d63cf commit 8c94242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ HTTP = "0.8,0.9"
JSON3 = "1"
StructTypes = "1"
URIs = "1"
julia = "1"

[extras]
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function fivexx(http, c=500)
HTTP.startwrite(http)
HTTP.close(http.stream)
end
const server = Sockets.listen(Sockets.InetAddr("0.0.0.0", 9100))
const server = Sockets.listen(Sockets.InetAddr(Sockets.ip"0.0.0.0", 9100))
tsk = @async HTTP.listen("0.0.0.0", 9100; server=server) do http
if http.message.method != "POST"
return fivexx(http)
Expand Down

2 comments on commit 8c94242

@fredrikekre
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/36924

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.0 -m "<description of version>" 8c94242fed55e8adc17ec9c54f79fefdc0e84119
git push origin v1.0.0

Please sign in to comment.