Files
floci/src/test/java
BingEdward 1a804ae547 fix(test): tear down the organization DetectiveIntegrationTest creates (#3229)
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
2026-09-08 09:51:49 -04:00
..