Fix deinit test
nathanmsmith opened this issue · 1 comments
nathanmsmith commented
Currently on master
(074daf10dd685911d95a2b739b84587a58b1b68b):
› yarn test
yarn run v1.12.3
$ jest
PASS lib/utils/formatAPIObject.test.js
PASS __tests__/myInfo.test.js
PASS __tests__/init.test.js (12.84s)
FAIL __tests__/deinit.test.js (14.542s)
● Keybase bot deinitialization › kills all spawned processes it creates
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
70 |
71 | // All processes should be shut down for alice
> 72 | expect(await countProcessesMentioning(aliceHomeDir)).toBe(0)
| ^
73 | // The service should still be running for bob, as that was started before he was initialized
74 | expect(await countProcessesMentioning(bobHomeDir)).toBe(1)
75 | await stopServiceManually(bobHomeDir)
at Object.toBe (__tests__/deinit.test.js:72:58)
PASS __tests__/chat.test.js (42.947s)
Test Suites: 1 failed, 4 passed, 5 total
Tests: 1 failed, 29 passed, 30 total
Snapshots: 0 total
Time: 43.399s, estimated 53s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
nathanmsmith commented
Seems to have been introduced in #90