You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
This test may time out, because the `proc.on('close')` event is never triggered.
FAIL src/attach/attach.test.ts (5.62 s)
● Nvim API › emits "disconnect" after quit
thrown: "Exceeded timeout of 5000 ms for a test while waiting for `done()` to be called.
| });
|
> | it('emits "disconnect" after quit', done => {
| ^
| const disconnectMock = jest.fn();
| nvim.on('disconnect', disconnectMock);
| nvim.quit();
at it (src/attach/attach.test.ts:138:3)
at Object.describe (src/attach/attach.test.ts:6:1)
Solution:
Listen for 'exit' instead of 'close'. This may indicate that Nvim or node-client
is not properly closing all of its streams, but that is unrelated to this
particular test.
0 commit comments