We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03628c8 commit bb8387eCopy full SHA for bb8387e
test/utils/async-helper.vader
@@ -10,15 +10,16 @@ Execute (set up async helper):
10
call OmniSharpTestAwait(a:funcname, a:args, 1)
11
endfunction
12
13
- function! OmniSharpTestAwait(funcname, args, warmup = 0) abort
+ function! OmniSharpTestAwait(funcname, args, ...) abort
14
+ let warmup = a:0 ? a:1 : 0
15
let g:OmniSharp_test_waiting = 1
16
call function(a:funcname, a:args + [function('s:Callback')])()
17
let starttime = reltime()
18
while g:OmniSharp_test_waiting
19
\ && reltime(starttime)[0] < g:OmniSharp_test_timeout
20
sleep 50m
21
endwhile
- if !a:warmup
22
+ if !warmup
23
Assert !g:OmniSharp_test_waiting, a:funcname . ' timed out'
24
endif
25
0 commit comments