tkalkirill commented on code in PR #2355:
URL: https://github.com/apache/ignite-3/pull/2355#discussion_r1274553571


##########
modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/BaseIgniteAbstractTest.java:
##########
@@ -90,6 +92,14 @@ protected void tearDownBase(TestInfo testInfo) {
                 testInfo.getDisplayName(), monotonicMs() - testStartMs);
     }
 
+    /**
+     * Prevents accidental leaks from Mockito.
+     */
+    @AfterAll
+    static void afterAll() {
+        framework().clearInlineMocks();
+    }
+

Review Comment:
   ```suggestion
       @AfterAll
       static void afterAll() {
           // Prevents accidental leaks from Mockito.
           framework().clearInlineMocks();
       }
   
   ```



##########
modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/IgniteAbstractTest.java:
##########
@@ -55,4 +58,12 @@ public void setup(TestInfo testInfo, @WorkDirectory Path 
workDir) throws Excepti
     public void tearDown(TestInfo testInfo) throws Exception {
         tearDownBase(testInfo);
     }
+
+    /**
+     * Prevents accidental leaks from Mockito.
+     */
+    @AfterAll
+    static void afterAll() {
+        framework().clearInlineMocks();
+    }

Review Comment:
   ```suggestion
       @AfterAll
       static void afterAll() {
           // Prevents accidental leaks from Mockito.
           framework().clearInlineMocks();
       }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to