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 \ --disable=gas \
--cyclo-over=50 \ --cyclo-over=50 \
--tests \ --tests \
--deadline=10s "${d}" --deadline=30s "${d}"
done done

View file

@ -33,7 +33,7 @@ func sPtr(s string) *string {
func getGPRCVersion() (string, error) { func getGPRCVersion() (string, error) {
_, file, _, ok := runtime.Caller(0) _, file, _, ok := runtime.Caller(0)
if !ok { 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)) ocidRoot := filepath.Dir(filepath.Dir(file))