mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-11 21:01:16 +02:00
Prepare Relay production infrastructure for the PlanetScale PS_20 HA topology, upgrade Effect and Alchemy to compatible betas, reconcile migration state, and preserve patched MCP session termination behavior.\n\nCo-authored-by: codex <codex@users.noreply.github.com>
18 lines
598 B
TypeScript
18 lines
598 B
TypeScript
import * as Test from "@/Test/Alchemy";
|
|
import { makeEc2VpcCapacityLease } from "./VpcCapacity.ts";
|
|
|
|
/** Test adapter for files that create custom VPCs. */
|
|
export const make = <ROut = any>(
|
|
options: Test.MakeOptions<ROut>,
|
|
permits: 1 | 2 = 1,
|
|
) => {
|
|
const api = Test.make(options);
|
|
const lease = makeEc2VpcCapacityLease(permits);
|
|
|
|
// Waiting is intentional scheduling across the full AWS run, not a cloud
|
|
// operation, so it uses the run's hard wall rather than a per-test budget.
|
|
api.beforeAll(lease.acquire, { timeout: 3_600_000 });
|
|
api.afterAll(lease.release);
|
|
|
|
return api;
|
|
};
|