diff options
author | w0rp <devw0rp@gmail.com> | 2017-10-23 23:09:40 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-10-23 23:09:40 +0100 |
commit | b952dda386e2e9e0ba145ff8e286879498c65756 (patch) | |
tree | ffe3309b636405174b386ccc29d7a7f98489ada7 /test/test_ale_lint_command.vader | |
parent | 231398dddc59b01bc83f5a333af1ae741d31ed51 (diff) | |
download | ale-b952dda386e2e9e0ba145ff8e286879498c65756.zip |
Get all tests to pass on Windows
Diffstat (limited to 'test/test_ale_lint_command.vader')
-rw-r--r-- | test/test_ale_lint_command.vader | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/test_ale_lint_command.vader b/test/test_ale_lint_command.vader index 42554ec1..d36b2177 100644 --- a/test/test_ale_lint_command.vader +++ b/test/test_ale_lint_command.vader @@ -28,7 +28,7 @@ Before: \ 'lnum': 2, \ 'vcol': 0, \ 'col': 3, - \ 'text': a:output[0], + \ 'text': join(split(a:output[0])), \ 'type': 'E', \ 'nr': -1, \}] @@ -37,7 +37,7 @@ Before: call ale#linter#Define('foobar', { \ 'name': 'testlinter', \ 'callback': 'ToggleTestCallback', - \ 'executable': 'echo', + \ 'executable': has('win32') ? 'cmd' : 'echo', \ 'command': 'echo foo bar', \}) @@ -63,5 +63,11 @@ Execute(ALELint should run the linters): ALELint call ale#engine#WaitForJobs(2000) + if !has('nvim') + " Sleep so the delayed list function can run. + " This breaks the tests in NeoVim for some reason. + sleep 1ms + endif + " Check the loclist AssertEqual g:expected_loclist, getloclist(0) |