Technoboy- commented on issue #16496:
URL: https://github.com/apache/pulsar/issues/16496#issuecomment-1179849713

   ```
   Error:  Tests run: 9, Failures: 3, Errors: 0, Skipped: 3, Time elapsed: 
31.381 s <<< FAILURE! - in 
org.apache.pulsar.broker.service.MessageCumulativeAckTest
     Error:  setup(org.apache.pulsar.broker.service.MessageCumulativeAckTest)  
Time elapsed: 0.394 s  <<< FAILURE!
     org.mockito.exceptions.misusing.WrongTypeOfReturnValue: 
     
     BrokerService cannot be returned by getPulsarResources()
     getPulsarResources() should return PulsarResources
     ***
     If you're unsure why you're getting above error read on.
     Due to the nature of the syntax above problem might occur because:
     1. This exception *might* occur in wrongly written multi-threaded tests.
        Please refer to Mockito FAQ on limitations of concurrency testing.
     2. A spy is stubbed using when(spy.foo()).then() syntax. It is safer to 
stub spies - 
        - with doReturn|Throw() family of methods. More in javadocs for 
Mockito.spy() method.
     
        at 
org.apache.pulsar.broker.PulsarService.getBrokerService(PulsarService.java:1242)
        at 
org.apache.pulsar.broker.service.MessageCumulativeAckTest.setup(MessageCumulativeAckTest.java:110)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
   ```


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