Skip to content

Commit

Permalink
ci: shorten path used for unix domain socket tests (to fit in Windows…
Browse files Browse the repository at this point in the history
… path limits)
  • Loading branch information
spytheman committed May 24, 2024
1 parent 75fe4ea commit cc72c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vlib/net/unix/unix_test.v
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion vlib/net/unix/use_net_and_net_unix_together_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cc72c2e

Please sign in to comment.