leave_group_request_test.go 315 B

1234567891011121314151617
  1. package sarama
  2. import "testing"
  3. var (
  4. basicLeaveGroupRequest = []byte{
  5. 0, 3, 'f', 'o', 'o',
  6. 0, 3, 'b', 'a', 'r',
  7. }
  8. )
  9. func TestLeaveGroupRequest(t *testing.T) {
  10. request := new(LeaveGroupRequest)
  11. request.GroupId = "foo"
  12. request.MemberId = "bar"
  13. testRequest(t, "basic", request, basicLeaveGroupRequest)
  14. }