test: lower sleep value in job test

Since sleep is a grandchild of nvim, it is not killed after the test ends.
Using a low sleep value allows it to exit automatically after a small interval.
This commit is contained in:
Thiago de Arruda 2015-07-16 13:30:45 -03:00
parent e85c9966b8
commit 9e42ef4e13

View File

@ -304,7 +304,7 @@ describe('jobs', function()
source([[ source([[
call rpcnotify(g:channel, 'wait', jobwait([ call rpcnotify(g:channel, 'wait', jobwait([
\ jobstart([&sh, '-c', 'exit 4']), \ jobstart([&sh, '-c', 'exit 4']),
\ jobstart([&sh, '-c', 'sleep 10000; exit 5']), \ jobstart([&sh, '-c', 'sleep 10; exit 5']),
\ ], 100)) \ ], 100))
]]) ]])
eq({'notification', 'wait', {{4, -1}}}, next_msg()) eq({'notification', 'wait', {{4, -1}}}, next_msg())