mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
DetectiveIntegrationTest creates an organization on account 000000000000 through the injected OrganizationsService and never deletes it. Organizations state is shared by every @QuarkusTest class in the same Surefire fork, so any class that lands in the same shard and later creates an organization under the default account (OrganizationsIntegrationTest's @Order(1) createOrganization) fails with AlreadyInOrganizationException and every ordered test after it cascades. Delete the organization in @AfterEach, guarded by a flag so the teardown only runs for the test that created one and a single-method run of the class still works. Fixes #3226