lucasbru commented on PR #14835:
URL: https://github.com/apache/kafka/pull/14835#issuecomment-1831495002
@AndrewJSchofield
Looks like the test is failing
```
org.mockito.exceptions.misusing.WrongTypeOfReturnValue:
Long cannot be returned by poll()
poll() should return PollResult
***
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.
```
Could you please have a look?
--
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]