Remove a flaky smoke test we no longer need

This commit is contained in:
w0rp 2022-11-25 12:58:14 +00:00
parent cbf7045eee
commit 46e77fad77
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
1 changed files with 0 additions and 40 deletions

View File

@ -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