From 46e77fad778344926f538748ccaa66cc28fa8152 Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 25 Nov 2022 12:58:14 +0000 Subject: [PATCH] Remove a flaky smoke test we no longer need --- test/smoke_test.vader | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/test/smoke_test.vader b/test/smoke_test.vader index 1a984dec..49634c34 100644 --- a/test/smoke_test.vader +++ b/test/smoke_test.vader @@ -139,43 +139,3 @@ Execute(Linters should run in PowerShell too): \ }, \], ale#test#GetLoclistWithoutNewerKeys() 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