t3-code-android-nightly/.repos/alchemy-effect/packages/alchemy/test/AWS/EC2/VpcTest.ts
Julius Marminge 108e01746c
Upgrade Effect and Alchemy betas (#4643)
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>
2026-07-27 16:21:02 +02:00

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;
};