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
Hi folks, I am unit testing my producer implementation, which uses sarama.SyncProducer, hence, I need to use the github.com/Shopify/sarama/mocks. This package provides the expect methods, but I am unsure how to use ExpectSendMessageAndFail for multiple failures in SendMessages(). I wanted to assert on all the ProducerErrors. Is there a way to test this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi folks, I am unit testing my producer implementation, which uses
sarama.SyncProducer
, hence, I need to use the github.com/Shopify/sarama/mocks. This package provides the expect methods, but I am unsure how to useExpectSendMessageAndFail
for multiple failures inSendMessages()
. I wanted to assert on all theProducerErrors
. Is there a way to test this?Beta Was this translation helpful? Give feedback.
All reactions