diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-19 11:10:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-19 11:10:58 +0100 |
commit | b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b (patch) | |
tree | 9110a9dfe22936d1dc86c69af4951f02e79e3518 /test/functional/api/server_requests_spec.lua | |
parent | 5db30dcc19d10837fee11e2d7f644a5cc76fd79f (diff) | |
parent | 7637df4b59091103996b07760cece4be8c557c35 (diff) | |
download | rneovim-b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b.tar.gz rneovim-b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b.tar.bz2 rneovim-b7b82f8c71a9282cd4f281b0058d5aec8f3e7a2b.zip |
Merge #5937 from justinmk/win32-test
Windows: test: enable job_spec.lua
Diffstat (limited to 'test/functional/api/server_requests_spec.lua')
-rw-r--r-- | test/functional/api/server_requests_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/api/server_requests_spec.lua b/test/functional/api/server_requests_spec.lua index aa91cd1396..76a335a8f4 100644 --- a/test/functional/api/server_requests_spec.lua +++ b/test/functional/api/server_requests_spec.lua @@ -1,11 +1,11 @@ --- Tests for some server->client RPC scenarios. Note that unlike with --- `rpcnotify`, to evaluate `rpcrequest` calls we need the client event loop to --- be running. +-- Test server -> client RPC scenarios. Note: unlike `rpcnotify`, to evaluate +-- `rpcrequest` calls we need the client event loop to be running. local helpers = require('test.functional.helpers')(after_each) local clear, nvim, eval = helpers.clear, helpers.nvim, helpers.eval local eq, neq, run, stop = helpers.eq, helpers.neq, helpers.run, helpers.stop local nvim_prog, command, funcs = helpers.nvim_prog, helpers.command, helpers.funcs local source, next_message = helpers.source, helpers.next_message +local ok = helpers.ok local meths = helpers.meths describe('server -> client', function() @@ -180,7 +180,7 @@ describe('server -> client', function() it('returns an error if the request failed', function() local status, err = pcall(eval, "rpcrequest(vim, 'does-not-exist')") eq(false, status) - eq(true, string.match(err, ': (.*)') == 'Failed to evaluate expression') + ok(nil ~= string.match(err, 'Failed to evaluate expression')) end) end) |