diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-12-03 13:00:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-03 13:00:41 +0100 |
commit | 231de72539829e6e3b318248c35015aa20c66f31 (patch) | |
tree | 72de67ecda2504f44f5183daaddb60809e855415 /test/functional/helpers.lua | |
parent | 07ad5d71ab97a84dc9c59b3507bf7898040d24cf (diff) | |
parent | 8b42249cddf6b257e2eee808a41f3d6dd5af6846 (diff) | |
download | rneovim-231de72539829e6e3b318248c35015aa20c66f31.tar.gz rneovim-231de72539829e6e3b318248c35015aa20c66f31.tar.bz2 rneovim-231de72539829e6e3b318248c35015aa20c66f31.zip |
Merge pull request #9300 from bfredl/asyncerr
rpc: fix invalid responses, turn errors from async calls into notifications
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index db90cb559f..a94e977cd0 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -757,6 +757,14 @@ return function(after_each) end check_logs() check_cores('build/bin/nvim') + if session then + local msg = session:next_message(0) + if msg then + if msg[1] == "notification" and msg[2] == "nvim_error_event" then + error(msg[3][2]) + end + end + end end) end return module |