Skip to content

Commit 6bf02ab

Browse files
author
Eric Wong
committed
test_exec: SO_KEEPALIVE value only needs to be true (take #2)
We need to ensure the portability of the sd_listen_fds emulation test, too, which didn't get tested on my FreeBSD 10.3 install due to it being on Ruby 2.2 Followup-to: 4ce6b00 ("test_exec: SO_KEEPALIVE value only needs to be true")
1 parent 477a220 commit 6bf02ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/exec/test_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_sd_listen_fds_emulation
122122
res = hit(["http://#@addr:#@port/"])
123123
assert_equal [ "HI\n" ], res
124124
assert_shutdown(pid)
125-
assert_equal 1, sock.getsockopt(:SOL_SOCKET, :SO_KEEPALIVE).int,
125+
assert sock.getsockopt(:SOL_SOCKET, :SO_KEEPALIVE).bool,
126126
'unicorn should always set SO_KEEPALIVE on inherited sockets'
127127
end
128128
ensure

0 commit comments

Comments
 (0)