diff options
author | Peter Lemenkov <lemenkov@redhat.com> | 2017-04-12 15:06:20 +0200 |
---|---|---|
committer | Peter Lemenkov <lemenkov@redhat.com> | 2017-04-12 15:20:28 +0200 |
commit | 73cc735709e055490b11d83712aea5a639a100b3 (patch) | |
tree | dae05bc8fa0855f745552b31f62c196357d15429 | |
parent | f4d0613e53b0df0a0b5de1838a0c7d84ca7565da (diff) | |
download | erlang-sd_notify-73cc735709e055490b11d83712aea5a639a100b3.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.erl | 2 |
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 |