Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test(garden): deterministic setup for connection-refused activator test

Replace :gen_tcp.listen + close (whose socket-file lifecycle varies
across platforms) with a plain File.touch!. Connecting to a regular
file at {:local, path} reliably returns :econnrefused on Linux, which
is what the test needs to verify.

sow-167

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+2 -4
+1 -1
CLAUDE.md
··· 1 1 ## Agent Workflow 2 - - **IMPORTANT**: before you do anything else, invoke the vein `orient` MCP prompt and heed its output with `/mcp__vein__orient`. 2 + - **IMPORTANT**: before you do anything else, invoke the vein `orient` MCP prompt and heed its output. 3 3 - **Always** use `elixir-conventions` for elixir code. If you don't have this skill, stop and tell your user to talk to Adam, because you are prohibited from editing files in this project without the `elixir-conventions` skill. 4 4 5 5 ## Rules
+1 -3
apps/garden/test/garden/activator_client_test.exs
··· 69 69 70 70 on_exit(fn -> File.rm_rf!(tmp_dir) end) 71 71 72 - # Create the socket file but don't listen on it 73 - {:ok, listen_socket} = :gen_tcp.listen(0, [{:ifaddr, {:local, socket_path}}]) 74 - :gen_tcp.close(listen_socket) 72 + File.touch!(socket_path) 75 73 76 74 log = 77 75 capture_log(fn ->