]> git.giacomolli.uk - onechat/commit
Keep test daemon sockets under the path limit
authorAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 19:27:23 +0000 (16:27 -0300)
committerAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 19:27:23 +0000 (16:27 -0300)
commit195c3fbb075383ac47bba310eb701b02774e8d10
tree8ee8454f41adb49e5ff7b2f7946777e7a8d0f91a
parentb1be0ee8530df5db8973bfe355f2f6d3149383a0
Keep test daemon sockets under the path limit

The test daemon keeps its data, and so its socket, in a short directory
under /tmp. t.TempDir holds the test name and the long TMPDIR of the
development shell, so a test with a long name failed to listen on a
socket path over 107 bytes, and bin/check failed in the shell unless
TMPDIR was set short by hand.
daemon_start_helper_test.go
socket_helper_test.go [new file with mode: 0644]