Fix failing test

This commit is contained in:
Mickael Remond 2018-01-13 18:56:38 +01:00
parent 10219ec1e6
commit ec95020ac2
No known key found for this signature in database
GPG Key ID: E6F6045D79965AA3

View File

@ -38,8 +38,8 @@ func authPlain(socket io.ReadWriter, decoder *xml.Decoder, user string, password
}
switch v := val.(type) {
case *SASLSuccess:
case *SASLFailure:
case SASLSuccess:
case SASLFailure:
// v.Any is type of sub-element in failure, which gives a description of what failed.
return errors.New("auth failure: " + v.Any.Local)
default: