Skip to content

Commit 8a92732

Browse files
committed
Skip udp multicast test when EHOSTUNREACH is returned
This is just meant as a quick fix. It might end up being the correct fix if EHOSTUNREACH means something similar to EPERM on Linux. See also #781
1 parent fcbfdc0 commit 8a92732

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test-udp.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,10 @@ return require('lib/tap')(function (test)
251251
-- and for ipv6:
252252
-- ip6tables --policy OUTPUT DROP
253253
-- ip6tables -A OUTPUT -s ::1 -j ACCEPT
254-
if err == "EPERM" then
254+
--
255+
-- EHOSTUNREACH was also observed on the macos CI runner
256+
-- TODO: Investigate EHOSTUNREACH more: https://github.com/luvit/luv/issues/781
257+
if err == "EPERM" or err == "EHOSTUNREACH" then
255258
print("send to multicast ip was likely denied by firewall, skipping")
256259
client:close()
257260
server:close()

0 commit comments

Comments
 (0)