leave_group_request_test.go 347 B

12345678910111213141516171819
  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. var request *LeaveGroupRequest
  11. request = new(LeaveGroupRequest)
  12. request.GroupId = "foo"
  13. request.MemberId = "bar"
  14. testRequest(t, "basic", request, basicLeaveGroupRequest)
  15. }