feat(infra): auto-commit con 4 cambios

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-03 16:44:23 +02:00
parent 6aec0413bb
commit fa09ff9866
4 changed files with 136 additions and 10 deletions
+11 -1
View File
@@ -5,6 +5,7 @@ import (
"encoding/json"
"net"
"net/http"
"os"
"strings"
"testing"
"time"
@@ -15,7 +16,16 @@ import (
func newUnixDockerServer(t *testing.T, handler http.Handler) (socketPath string) {
t.Helper()
socketPath = t.TempDir() + "/docker_exec_test.sock"
// Los sockets Unix tienen un limite de ~108 bytes en sun_path (Linux).
// t.TempDir() incluye el nombre del subtest (largo) y un TMPDIR que puede
// ser largo, excediendo el limite -> "bind: invalid argument". Crear un
// directorio corto directamente bajo /tmp.
dir, err := os.MkdirTemp("/tmp", "dk")
if err != nil {
t.Fatalf("mkdtemp: %v", err)
}
t.Cleanup(func() { os.RemoveAll(dir) })
socketPath = dir + "/d.sock"
ln, err := net.Listen("unix", socketPath)
if err != nil {
t.Fatalf("listen unix %s: %v", socketPath, err)