BewareMyPower commented on PR #25100:
URL: https://github.com/apache/pulsar/pull/25100#issuecomment-3754299935

   There seems to a regression introduced by this PR that I encountered the 
following error when running tests:
   
   ```
   [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 
2.694 s <<< FAILURE! -- in org.apache.pulsar.broker.service.SubscriptionSeekTest
   [ERROR] org.apache.pulsar.broker.service.SubscriptionSeekTest.setup -- Time 
elapsed: 1.395 s <<< FAILURE!
   org.mockito.exceptions.base.MockitoException:
   
   Mockito cannot mock this class: class 
org.apache.pulsar.broker.testcontext.StartableTestPulsarService.
   
   If you're not sure why you're getting this error, please open an issue on 
GitHub.
   
   
   Java               : 17
   JVM vendor name    : Amazon.com Inc.
   JVM vendor version : 17.0.7+7-LTS
   JVM name           : OpenJDK 64-Bit Server VM
   JVM version        : 17.0.7+7-LTS
   JVM info           : mixed mode
   OS name            : Mac OS X
   OS version         : 15.1.1
   
   
   You are seeing this disclaimer because Mockito is configured to create 
inlined mocks.
   You can learn about inline mocks and their limitations under item #39 of the 
Mockito class javadoc.
   
   Underlying exception : org.mockito.exceptions.base.MockitoException: Cannot 
instrument class 
org.apache.pulsar.broker.testcontext.StartableTestPulsarService because it or 
one of its supertypes could not be initialized
        at 
org.apache.pulsar.broker.BrokerTestUtil.spyWithClassAndConstructorArgs(BrokerTestUtil.java:78)
        at 
org.apache.pulsar.broker.testcontext.SpyConfig$SpyType.spy(SpyConfig.java:73)
        at 
org.apache.pulsar.broker.testcontext.PulsarTestContext$StartableCustomBuilder.initializePulsarServices(PulsarTestContext.java:931)
   ```
   
   I only ran `mvn clean install -DskipTests -Pcore-modules,-main` before 
running `mvn test`.


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