Skip to content

Commit

Permalink
tests: call agent.stop and agent.destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed May 11, 2021
1 parent c05e712 commit 11a447c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/runify.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ hosts.forEach(function (record) {
agent = await eshost.createAgent(type, options);
});

afterEach(() => {
afterEach(async () => {
if (agent) {
agent.destroy();
await agent.stop();
await agent.destroy();
}
});

Expand Down

0 comments on commit 11a447c

Please sign in to comment.