From 80aaf483e62ff5242b5a4354f99d07b6799f0d4d Mon Sep 17 00:00:00 2001 From: Don Works Date: Fri, 19 Jun 2026 14:19:32 +0100 Subject: [PATCH 1/2] Fix smoke test and HTTP env example --- .env.example | 2 +- cmd/mcplexer/connect_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 90c666c..cbc12d2 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ # MCPlexer Configuration MCPLEXER_MODE=stdio # stdio | http -MCPLEXER_HTTP_ADDR=127.0.0.1:8080 # HTTP listen address (http mode) +MCPLEXER_HTTP_ADDR=127.0.0.1:3333 # HTTP listen address (http mode) MCPLEXER_DB_DRIVER=sqlite # sqlite | postgres MCPLEXER_DB_DSN=mcplexer.db # SQLite file path or Postgres connection string MCPLEXER_AGE_KEY= # Path to age identity file for secret encryption diff --git a/cmd/mcplexer/connect_test.go b/cmd/mcplexer/connect_test.go index 38d29e9..7ff372a 100644 --- a/cmd/mcplexer/connect_test.go +++ b/cmd/mcplexer/connect_test.go @@ -39,7 +39,7 @@ func shortSockDir(t *testing.T) string { // - context with deadline returns once the deadline elapses, even when // the socket never becomes available // -// Timing assertions use generous slack (200ms) to stay stable under CI +// Timing assertions use generous slack to stay stable under CI // load; the precise schedule (20ms -> 50 -> 100 -> 200 -> 500 -> 1s, cap 2s) // is locked by TestDialWithBackoff_ScheduleRamp below. func TestDialWithBackoff_TableDriven(t *testing.T) { @@ -65,7 +65,7 @@ func TestDialWithBackoff_TableDriven(t *testing.T) { setupCtx: func() (context.Context, context.CancelFunc) { return context.WithTimeout(context.Background(), 2*time.Second) }, - wantElapsed: 400 * time.Millisecond, + wantElapsed: 1 * time.Second, }, { name: "ctx cancellation interrupts the loop", From ecbbcd997a71638056b28d0829fd23986f315a65 Mon Sep 17 00:00:00 2001 From: Don Works Date: Fri, 19 Jun 2026 14:23:53 +0100 Subject: [PATCH 2/2] Fix install test cleanup --- scripts/test-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/test-install.sh b/scripts/test-install.sh index 1a1ee76..8b1ecf7 100755 --- a/scripts/test-install.sh +++ b/scripts/test-install.sh @@ -18,7 +18,10 @@ cleanup() { kill "$DAEMON_PID" 2>/dev/null || true wait "$DAEMON_PID" 2>/dev/null || true fi - rm -rf "$TEST_HOME" + if [ -n "$TEST_HOME" ] && [ -d "$TEST_HOME" ]; then + chmod -R u+w "$TEST_HOME" 2>/dev/null || true + rm -rf "$TEST_HOME" || true + fi } trap cleanup EXIT