You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@shoothzj You can create a method for handling the close producer response, then you can call it directly. If the code is untestable, we should make it testable.
@shoothzj You can create a method for handling the close producer response, then you can call it directly. If the code is untestable, we should make it testable.
Thanks a lot for your help, I found the way to add test.
In #11906 , it fixed the update of memory usage, but still one branch of
closeAsync
doesn't call callback too.But this seems hard to write an unit test. This needs during the producer close, the broker is ready, and there are still remaining pending messages.
Any idea for how to add tests?
@codelipenghui @merlimat @michaeljmarshall
The text was updated successfully, but these errors were encountered: