summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Lemenkov <lemenkov@redhat.com>2017-04-12 15:06:20 +0200
committerPeter Lemenkov <lemenkov@redhat.com>2017-04-12 15:20:28 +0200
commit73cc735709e055490b11d83712aea5a639a100b3 (patch)
treedae05bc8fa0855f745552b31f62c196357d15429
parentf4d0613e53b0df0a0b5de1838a0c7d84ca7565da (diff)
downloaderlang-sd_notify-ci_tests_centos.tar.gz
Don't fake list of socketsci_tests_centos
Don't pass fake list of sockets because it breaks Centos 7 (bug #24). Also check return value. Signed-off-by: Peter Lemenkov <lemenkov@redhat.com>
-rw-r--r--test/sd_notify_test.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sd_notify_test.erl b/test/sd_notify_test.erl
index 414f1bc..72a4d3f 100644
--- a/test/sd_notify_test.erl
+++ b/test/sd_notify_test.erl
@@ -20,7 +20,7 @@ sd_notify_test_local("19") ->
"Try sending message",
fun() ->
TestMessage = integer_to_list(erlang:phash2(make_ref())),
- sd_notify:sd_pid_notify_with_fds(0, 0, TestMessage, [1, 2, 3]),
+ 1 = sd_notify:sd_pid_notify_with_fds(0, 0, TestMessage, []),
{ok, {_Address, _Port, Packet}} = gen_udp:recv(FakeNotifyUnixSock, length(TestMessage), 1000),
?assertEqual(TestMessage, Packet)
end