From cc72c2e5799ead237fe6fc5aa78ca4304c1413ba Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 24 May 2024 20:15:50 +0300 Subject: [PATCH] ci: shorten path used for unix domain socket tests (to fit in Windows path limits) --- vlib/net/unix/unix_test.v | 2 +- vlib/net/unix/use_net_and_net_unix_together_test.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/net/unix/unix_test.v b/vlib/net/unix/unix_test.v index a1dd8cd515fef7..6823705f4b2203 100644 --- a/vlib/net/unix/unix_test.v +++ b/vlib/net/unix/unix_test.v @@ -1,7 +1,7 @@ import os import net.unix -const tfolder = os.join_path(os.vtmp_dir(), 'unix_test') +const tfolder = os.join_path(os.temp_dir(), 'unix_${os.getpid()}') const socket_path = os.join_path(tfolder, 'v_unix.sock') fn testsuite_begin() { diff --git a/vlib/net/unix/use_net_and_net_unix_together_test.v b/vlib/net/unix/use_net_and_net_unix_together_test.v index 055686eafd17e7..0aa3add21d4027 100644 --- a/vlib/net/unix/use_net_and_net_unix_together_test.v +++ b/vlib/net/unix/use_net_and_net_unix_together_test.v @@ -4,7 +4,7 @@ import net const use_net = net.no_timeout // ensure that `net` is used, i.e. no warnings -const tfolder = os.join_path(os.vtmp_dir(), 'net_unix_test') +const tfolder = os.join_path(os.temp_dir(), 'nuut_${os.getpid()}') const test_port = os.join_path(tfolder, 'domain_socket') fn testsuite_begin() {