We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fb6d9a commit 54480ccCopy full SHA for 54480cc
mocks/sync_producer.go
@@ -87,7 +87,7 @@ func (sp *SyncProducer) SendMessage(msg *sarama.ProducerMessage) (partition int3
87
if errors.Is(expectation.Result, errProduceSuccess) {
88
sp.lastOffset++
89
msg.Offset = sp.lastOffset
90
- return 0, msg.Offset, nil
+ return msg.Partition, msg.Offset, nil
91
}
92
return -1, -1, expectation.Result
93
0 commit comments