Skip to content

Commit

Permalink
Fix TCPServer spec for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Feb 10, 2019
1 parent 8cd5f6c commit a6c98eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/std/socket/tcp_server_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe TCPServer do

it "raises when not binding with reuse_port" do
TCPServer.open(address, 0, reuse_port: true) do |server|
expect_raises_errno(Errno::EADDRINUSE, {% if flag?(:linux) %}"listen: "{% else %}"bind: "{% end %}) do
expect_raises_errno(Errno::EADDRINUSE, {% if flag?(:linux) && !flag?(:musl) %}"listen: "{% else %}"bind: "{% end %}) do
TCPServer.open(address, server.local_address.port) { }
end
end
Expand Down

0 comments on commit a6c98eb

Please sign in to comment.