Increase the deadline to 30 seconds in lint and fix lint errors

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2016-09-19 13:09:11 -07:00
parent 166778315c
commit 8d3b9971e7
2 changed files with 2 additions and 2 deletions

View file

@ -20,5 +20,5 @@ for d in $(find . -type d -not -iwholename '*.git*' -a -not -iname '.tool' -a -n
--disable=gas \
--cyclo-over=50 \
--tests \
--deadline=10s "${d}"
--deadline=30s "${d}"
done

View file

@ -33,7 +33,7 @@ func sPtr(s string) *string {
func getGPRCVersion() (string, error) {
_, file, _, ok := runtime.Caller(0)
if !ok {
return "", errors.New("failed to recover the caller information.")
return "", errors.New("failed to recover the caller information")
}
ocidRoot := filepath.Dir(filepath.Dir(file))