Skip to content

Commit

Permalink
fix: stuck tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Oct 16, 2023
1 parent 0b79681 commit e0f8999
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/codecept.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ class Codecept {

try {
event.emit(event.all.before, this);
mocha.run(() => done());
mocha.run(() => {
done();
process.exitCode = 0;
});
} catch (e) {
output.error(e.stack);
reject(e);
Expand Down
1 change: 0 additions & 1 deletion test/runner/bdd_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ describe('BDD Gherkin', () => {
// stdout.should.not.include('Then my test execution gets stuck');
stdout.should.include('1 failed');
stdout.should.include('[Wrapped Error]');
assert(err);
done();
});
});
Expand Down

0 comments on commit e0f8999

Please sign in to comment.