ExpectSendMessageAndFail sets an expectation on the mock producer that SendMessage will be called. The mock producer will handle the message as if it failed to produce successfully, i.e. by returning the provided error.
(err error)
| 219 | // called. The mock producer will handle the message as if it failed to produce |
| 220 | // successfully, i.e. by returning the provided error. |
| 221 | func (sp *SyncProducer) ExpectSendMessageAndFail(err error) *SyncProducer { |
| 222 | sp.ExpectSendMessageWithMessageCheckerFunctionAndFail(nil, err) |
| 223 | |
| 224 | return sp |
| 225 | } |
| 226 | |
| 227 | func (sp *SyncProducer) IsTransactional() bool { |
| 228 | return sp.isTransactional |