wu-sheng commented on code in PR #13671:
URL: https://github.com/apache/skywalking/pull/13671#discussion_r2700523623


##########
oap-server/analyzer/meter-analyzer/src/test/java/org/apache/skywalking/oap/meter/analyzer/dsl/AnalyzerTest.java:
##########
@@ -66,9 +66,11 @@ public class AnalyzerTest {
     @BeforeEach
     public void setup() throws StorageException {
         meterSystem = spy(new MeterSystem(moduleManager));
-        Whitebox.setInternalState(MetricsStreamProcessor.class, "PROCESSOR",
-                                  
Mockito.spy(MetricsStreamProcessor.getInstance())
-        );
+// Fix for JDK 25 / Mockito 5: Prevent double-spying on the singleton

Review Comment:
   About comments, please align with the code indentation.



-- 
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