Skip to content

Commit 565182e

Browse files
committed
fix: flaky test
1 parent 8ad0832 commit 565182e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/unixTerminal.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,10 @@ if (process.platform !== 'win32') {
291291
if (process.platform === 'darwin') {
292292
it('should return the name of the process', (done) => {
293293
const term = new UnixTerminal('/bin/echo');
294-
assert.strictEqual(term.process, '/bin/echo');
295-
term.on('exit', () => done());
294+
term.on('exit', () => {
295+
assert.strictEqual(term.process, '/bin/echo');
296+
done();
297+
});
296298
term.destroy();
297299
});
298300
it('should return the name of the sub process', (done) => {

0 commit comments

Comments
 (0)