| 1 | //go:build !functional |
| 2 | |
| 3 | package sarama |
| 4 | |
| 5 | import ( |
| 6 | "testing" |
| 7 | "time" |
| 8 | ) |
| 9 | |
| 10 | var addOffsetsToTxnResponse = []byte{ |
| 11 | 0, 0, 0, 100, |
| 12 | 0, 47, |
| 13 | } |
| 14 | |
| 15 | func TestAddOffsetsToTxnResponse(t *testing.T) { |
| 16 | resp := &AddOffsetsToTxnResponse{ |
| 17 | ThrottleTime: 100 * time.Millisecond, |
| 18 | Err: ErrInvalidProducerEpoch, |
| 19 | } |
| 20 | |
| 21 | testResponse(t, "", resp, addOffsetsToTxnResponse) |
| 22 | } |