updating github.com/onsi/gomega to v1.5.0

This commit is contained in:
Davanum Srinivas
2019-06-14 11:20:57 -04:00
parent 8629f7fa25
commit 37479f975e
50 changed files with 55 additions and 71 deletions

View File

@@ -77,9 +77,9 @@ func (m *KeysMatcher) matchKeys(actual interface{}) (errs []error) {
return nil
}
valValue := actualValue.MapIndex(keyValue)
valInterface := actualValue.MapIndex(keyValue).Interface()
match, err := matcher.Match(valValue.Interface())
match, err := matcher.Match(valInterface)
if err != nil {
return err
}
@@ -88,7 +88,7 @@ func (m *KeysMatcher) matchKeys(actual interface{}) (errs []error) {
if nesting, ok := matcher.(errorsutil.NestingMatcher); ok {
return errorsutil.AggregateError(nesting.Failures())
}
return errors.New(matcher.FailureMessage(valValue))
return errors.New(matcher.FailureMessage(valInterface))
}
return nil
}()