add_offsets_to_txn_response_test.go 342 B

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