diff --git a/test/udp-zero-length-send-recv b/test/udp-zero-length-send-recv index 7d76c98..541efd4 100755 --- a/test/udp-zero-length-send-recv +++ b/test/udp-zero-length-send-recv @@ -24,12 +24,14 @@ if ok ~= 0 then print("send of zero failed with:", ok, emsg) end +assert(r:settimeout(2)) + ok, emsg = r:receive() if not ok or string.len(ok) ~= 0 then - print("receive of zero failed with:", ok, emsg) + print("fail - receive of zero failed with:", ok, emsg) + os.exit(1) end print"ok" -