// JWKS rotation, JWKS refresh, and DbResetFixture all mutate process-wide // state on the shared `missions-sut` container (the JWKS cache, the database, // the CORS warm-up flag, etc.). xUnit runs different [Collection(...)] groups // in parallel by default, which races those mutations against any test that // happens to mint a token or query a row at the same moment. The whole e2e // surface is one System-Under-Test; serializing the collections is the only // way to make assertions deterministic. // // We still keep [Collection(...)] attributes per class — they continue to // enforce intra-collection ordering and let xUnit fail fast if two tests in // the same fixture race. DisableTestParallelization=true switches the // across-collection scheduling off; intra-collection serialization is the // default and still applies. [assembly: Xunit.CollectionBehavior(DisableTestParallelization = true)]