Skip to content

Commit

Permalink
Reset the ConfiguredEnvironment singleton to avoid state pollution
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-molak committed Dec 28, 2023
1 parent 15430e1 commit 93c22f6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ class WhenReadingRequirementsFromACollectionOfTestOutcomes {

@BeforeEach
void clearCaches() {
ConfiguredEnvironment.reset();
RequirementCache.getInstance().clear();
}

@AfterAll
static void afterAll() {
ConfiguredEnvironment.reset();
RequirementCache.getInstance().clear();
}

Expand Down

0 comments on commit 93c22f6

Please sign in to comment.