From bdcfc10642bf9bbd0afbdebb8d4977f464d3c38b Mon Sep 17 00:00:00 2001 From: Wojciech Matusiak Date: Sat, 30 Dec 2017 02:05:18 +0100 Subject: [PATCH] Fix: GoTestFunc dont respect go_test_timeout Fixes #1619 --- autoload/go/test.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/go/test.vim b/autoload/go/test.vim index 51e9a5d195..4606ad4820 100644 --- a/autoload/go/test.vim +++ b/autoload/go/test.vim @@ -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)