1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix unix sockets test on macos

This commit is contained in:
Delyan Angelov
2021-02-11 22:34:38 +02:00
parent 9b4f2edbfa
commit 89521584a2
3 changed files with 14 additions and 11 deletions

View File

@ -1,8 +1,6 @@
import net.unix
const (
test_port = 'test'
)
const test_port = 'unix_domain_socket'
fn handle_conn(mut c unix.StreamConn) {
for {
@ -27,7 +25,7 @@ fn echo_server(mut l unix.StreamListener) ? {
}
fn echo() ? {
mut c := unix.connect_stream('test') ?
mut c := unix.connect_stream(test_port) ?
defer {
c.close() or { }
}