|
@@ -179,7 +179,7 @@ func TestProduceSetCompressedRequestBuilding(t *testing.T) {
|
|
|
t.Error("Wrong compressed message version")
|
|
|
}
|
|
|
if compMsgBlock.Offset != int64(i) {
|
|
|
- t.Error("Wrong relative inner offset")
|
|
|
+ t.Errorf("Wrong relative inner offset, expected %d, got %d", i, compMsgBlock.Offset)
|
|
|
}
|
|
|
}
|
|
|
if msg.Version != 1 {
|
|
@@ -237,6 +237,10 @@ func TestProduceSetV3RequestBuilding(t *testing.T) {
|
|
|
t.Errorf("Wrong timestamp delta: %v", rec.TimestampDelta)
|
|
|
}
|
|
|
|
|
|
+ if rec.OffsetDelta != int64(i) {
|
|
|
+ t.Errorf("Wrong relative inner offset, expected %d, got %d", i, rec.OffsetDelta)
|
|
|
+ }
|
|
|
+
|
|
|
for j, h := range batch.Records[i].Headers {
|
|
|
exp := fmt.Sprintf("header-%d", j+1)
|
|
|
if string(h.Key) != exp {
|