mirror of https://github.com/dense-analysis/ale
Remove a flaky smoke test we no longer need
This commit is contained in:
parent
cbf7045eee
commit
46e77fad77
|
@ -139,43 +139,3 @@ Execute(Linters should run in PowerShell too):
|
||||||
\ },
|
\ },
|
||||||
\], ale#test#GetLoclistWithoutNewerKeys()
|
\], ale#test#GetLoclistWithoutNewerKeys()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
Execute(Previous errors should be removed when linters change):
|
|
||||||
call ale#Queue(0, '')
|
|
||||||
call ale#test#WaitForJobs(2000)
|
|
||||||
|
|
||||||
call ale#linter#Reset()
|
|
||||||
|
|
||||||
call ale#linter#Define('foobar', {
|
|
||||||
\ 'name': 'testlinter2',
|
|
||||||
\ 'callback': 'TestCallback2',
|
|
||||||
\ 'executable': has('win32') ? 'cmd' : 'echo',
|
|
||||||
\ 'command': has('win32') ? 'echo baz boz' : '/bin/sh -c ''echo baz boz''',
|
|
||||||
\})
|
|
||||||
|
|
||||||
let g:expected_results = [{
|
|
||||||
\ 'bufnr': bufnr('%'),
|
|
||||||
\ 'lnum': 3,
|
|
||||||
\ 'vcol': 0,
|
|
||||||
\ 'col': 4,
|
|
||||||
\ 'text': 'baz boz',
|
|
||||||
\ 'type': 'E',
|
|
||||||
\ 'nr': -1,
|
|
||||||
\ 'pattern': '',
|
|
||||||
\ 'valid': 1,
|
|
||||||
\}]
|
|
||||||
|
|
||||||
" Try the test a few times over in NeoVim 0.3 or VIm 8.2 or Windows,
|
|
||||||
" where tests fail randomly.
|
|
||||||
for g:i in range(has('nvim-0.3') || has('win32') || has('patch-8.2.2401') ? 5 : 1)
|
|
||||||
call ale#Queue(0, '')
|
|
||||||
call ale#test#WaitForJobs(2000)
|
|
||||||
|
|
||||||
let g:results = ale#test#GetLoclistWithoutNewerKeys()
|
|
||||||
|
|
||||||
if g:results == g:expected_results
|
|
||||||
break
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
|
|
||||||
AssertEqual g:expected_results, g:results
|
|
||||||
|
|
Loading…
Reference in New Issue