diff options
author | w0rp <devw0rp@gmail.com> | 2017-04-30 10:09:26 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-04-30 10:09:26 +0100 |
commit | 6547adcf2fc2b262aa5c8047f5687d6e65351087 (patch) | |
tree | 08601cf0b6924b4cbaf86a508dd3f4371020eef0 /test | |
parent | a6cadaabef9ed9afa7c75bedd3102bf526ac79f0 (diff) | |
download | ale-6547adcf2fc2b262aa5c8047f5687d6e65351087.zip |
Run the lint_file checks synchronously, so the tests will consistently pass
Diffstat (limited to 'test')
-rw-r--r-- | test/test_lint_file_linters.vader | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/test_lint_file_linters.vader b/test/test_lint_file_linters.vader index d80fe2c6..a02ecca3 100644 --- a/test/test_lint_file_linters.vader +++ b/test/test_lint_file_linters.vader @@ -1,4 +1,7 @@ Before: + Save g:ale_run_synchronously + let g:ale_run_synchronously = 1 + let g:buffer_result = [ \ { \ 'lnum': 1, @@ -67,6 +70,8 @@ Before: \}) After: + Restore + unlet g:buffer_result let g:ale_buffer_info = {} call ale#linter#Reset() @@ -83,7 +88,6 @@ Execute(Running linters without 'lint_file' should run only buffer linters): call ale#ResetLintFileMarkers() let g:ale_buffer_info = {} call ale#Queue(0) - call ale#engine#WaitForJobs(2000) AssertEqual [ \ { @@ -104,7 +108,6 @@ Execute(Running linters with 'lint_file' should run all linters): call ale#ResetLintFileMarkers() let g:ale_buffer_info = {} call ale#Queue(0, 'lint_file') - call ale#engine#WaitForJobs(2000) AssertEqual [ \ { @@ -137,7 +140,6 @@ Execute(Linter errors from files should be kept): call ale#ResetLintFileMarkers() let g:ale_buffer_info = {} call ale#Queue(0, 'lint_file') - call ale#engine#WaitForJobs(2000) " Change the results for the buffer callback. let g:buffer_result = [ @@ -150,7 +152,6 @@ Execute(Linter errors from files should be kept): \] call ale#Queue(0) - call ale#engine#WaitForJobs(2000) AssertEqual [ \ { |