end_txn_response_test.go 310 B

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