mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net.unix: make unix_test.v more robust
This commit is contained in:
parent
fba28d2dcc
commit
fb028abc71
@ -1,6 +1,15 @@
|
|||||||
|
import os
|
||||||
import net.unix
|
import net.unix
|
||||||
|
|
||||||
const test_port = 'unix_domain_socket'
|
const test_port = os.join_path(os.temp_dir(), 'unix_domain_socket')
|
||||||
|
|
||||||
|
fn testsuite_begin() {
|
||||||
|
os.rm(test_port) or { }
|
||||||
|
}
|
||||||
|
|
||||||
|
fn testsuite_end() {
|
||||||
|
os.rm(test_port) or { }
|
||||||
|
}
|
||||||
|
|
||||||
fn handle_conn(mut c unix.StreamConn) {
|
fn handle_conn(mut c unix.StreamConn) {
|
||||||
for {
|
for {
|
||||||
|
Loading…
Reference in New Issue
Block a user