From ce7e3952950cf49146735704484650f980512ef7 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 24 Apr 2024 18:29:24 +0100 Subject: [PATCH] devout test: replace minisock with lualinux --- pkgs/devout/test.fnl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/devout/test.fnl b/pkgs/devout/test.fnl index a9f988c..05f3bc3 100644 --- a/pkgs/devout/test.fnl +++ b/pkgs/devout/test.fnl @@ -1,6 +1,6 @@ (local { : database : event-loop } (require :devout)) (local { : view } (require :fennel)) -(local sock (require :minisock)) +(local ll (require :lualinux)) (import-macros { : expect : expect= } :anoia.assert) (var failed false) @@ -166,9 +166,7 @@ MINOR=17") )) (fn new-fd [] - (let [fd (sock.bind (.. "\1\0" "/tmp/test-socket" "\0\0\0\0\0"))] - (os.remove "/tmp/test-socket") - fd)) + (ll.open "/dev/zero" 0 0x1ff)) (example "when the callback returns false it is unregistered and the fd is closed"