Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/mcplexer/connect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion scripts/test-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading