summaryrefslogtreecommitdiff
path: root/test/test_lint_file_linters.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-14 10:00:46 +0100
committerw0rp <devw0rp@gmail.com>2017-08-14 10:00:46 +0100
commit1680f7af630da107bd0124adb434e27eef3e2371 (patch)
tree4f616d9db9ac0a6d5d95511b7420f1b6213de4e7 /test/test_lint_file_linters.vader
parent79701f6f200489d0eef2ea6e91f7e46be012cdd3 (diff)
downloadale-1680f7af630da107bd0124adb434e27eef3e2371.zip
Fix a bug where the sign column was not closed some of the time, etc.
Diffstat (limited to 'test/test_lint_file_linters.vader')
-rw-r--r--test/test_lint_file_linters.vader20
1 files changed, 20 insertions, 0 deletions
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)