Skip to content

Commit

Permalink
fix: robot_test exited before finishing other tests (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyguerra authored Nov 5, 2023
1 parent c9f0d10 commit 1f730ce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/adapters/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class Shell extends Adapter {
case '\\q':
case 'exit':
this.#rl.close()
process.exit(0)
break
case '\\?':
case 'help':
Expand Down Expand Up @@ -92,8 +93,6 @@ class Shell extends Adapter {
const user = this.robot.brain.userForId(userId, { name: userName, room: 'Shell' })
await this.receive(new TextMessage(user, input, 'messageId'))
this.#rl.prompt()
}).on('close', () => {
process.exit(0)
})
try {
this.#rl.prompt()
Expand All @@ -108,8 +107,6 @@ class Shell extends Adapter {
if (this.#rl?.close) {
this.#rl.close()
}
this.cli.removeAllListeners()
this.cli.close()
}
}

Expand Down

0 comments on commit 1f730ce

Please sign in to comment.