From 1680f7af630da107bd0124adb434e27eef3e2371 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 14 Aug 2017 10:00:46 +0100 Subject: Fix a bug where the sign column was not closed some of the time, etc. --- test/test_lint_file_linters.vader | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test') diff --git a/test/test_lint_file_linters.vader b/test/test_lint_file_linters.vader index 2eb9b2e6..cb859790 100644 --- a/test/test_lint_file_linters.vader +++ b/test/test_lint_file_linters.vader @@ -79,6 +79,10 @@ Before: call ale#test#SetFilename(g:filename) After: + if !g:ale_run_synchronously + call ale#engine#WaitForJobs(2000) + endif + Restore unlet! b:ale_save_event_fired @@ -267,3 +271,19 @@ Execute(b:ale_save_event_fired should be set to 0 when results are set): call ale#engine#SetResults(bufnr(''), []) AssertEqual 0, b:ale_save_event_fired + +Execute(lint_file linters should stay running after checking without them): + let g:ale_run_synchronously = 0 + + " Run all linters, then just the buffer linters. + call ale#Queue(0, 'lint_file') + call ale#Queue(0) + + " The lint_file linter should still be running. + AssertEqual + \ ['lint_file_linter', 'buffer_linter'], + \ g:ale_buffer_info[bufnr('')].active_linter_list + " We should have 1 job for each linter. + AssertEqual 2, len(g:ale_buffer_info[bufnr('')].job_list) + + call ale#engine#WaitForJobs(2000) -- cgit v1.2.3