sasl_handshake_request_test.go 273 B

123456789101112131415
  1. package sarama
  2. import "testing"
  3. var (
  4. baseSaslRequest = []byte{
  5. 0, 3, 'f', 'o', 'o', // Mechanism
  6. }
  7. )
  8. func TestSaslHandshakeRequest(t *testing.T) {
  9. request := new(SaslHandshakeRequest)
  10. request.Mechanism = "foo"
  11. testRequest(t, "basic", request, baseSaslRequest)
  12. }