mirror of
https://github.com/janet-lang/janet
synced 2025-08-04 13:03:52 +00:00
Remove unix domain socket after test
This commit is contained in:
parent
363e32d455
commit
d2ee4aa074
@ -501,8 +501,10 @@
|
|||||||
# soreuseport on unix domain sockets
|
# soreuseport on unix domain sockets
|
||||||
(compwhen (or (= :macos (os/which)) (= :linux (os/which)))
|
(compwhen (or (= :macos (os/which)) (= :linux (os/which)))
|
||||||
(assert-no-error "unix-domain socket reuseaddr"
|
(assert-no-error "unix-domain socket reuseaddr"
|
||||||
(let [s (net/listen :unix "./unix-domain-socket" :stream)]
|
(let [uds-path "./unix-domain-socket"]
|
||||||
(:close s))))
|
(defer (os/rm uds-path)
|
||||||
|
(let [s (net/listen :unix uds-path :stream)]
|
||||||
|
(:close s))))))
|
||||||
|
|
||||||
# net/accept-loop level triggering
|
# net/accept-loop level triggering
|
||||||
(gccollect)
|
(gccollect)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user