mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 19:13:43 +00:00
42ac34ca70
Fires more concurrent ClaimAllocation calls than there is Ready capacity at a real PostgreSQL instance and asserts: exactly as many win as there was capacity, every winner gets a distinct server (no double-booking), every loser gets ErrNoCapacity rather than a raw serialization error or a hang, and the durable game_servers.state count matches. This is the cross-allocator-replica race 8.30 calls out as untested -- the existing capacity test in this file claims strictly one request at a time. Verified clean across 6 runs with -race, plus the full integration and unit suites.