Skip to content

Commit

Permalink
Merge pull request #1631 from wmatusiak/master
Browse files Browse the repository at this point in the history
Fix: GoTestFunc dont respect go_test_timeout
  • Loading branch information
bhcleek authored Dec 30, 2017
2 parents bf390af + bdcfc10 commit ffdf800
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/go/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ function! go#test#Func(bang, ...) abort

if a:0
call extend(args, a:000)
else
" only add this if no custom flags are passed
let timeout = get(g:, 'go_test_timeout', '10s')
call add(args, printf("-timeout=%s", timeout))
endif

call call('go#test#Test', args)
Expand Down

0 comments on commit ffdf800

Please sign in to comment.