Skip to content

Commit 4867d45

Browse files
Bug fix of it.only in unit cases
1 parent 83ccfeb commit 4867d45

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/unit/bin/helpers/utils.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,7 +2401,7 @@ describe('utils', () => {
24012401
});
24022402

24032403
describe('setProcessHooks', () => {
2404-
it.only('should handle "SIGINT" event', (done) => {
2404+
it('should handle "SIGINT" event', (done) => {
24052405
let buildId = 'build_id';
24062406
let bsConfig = {
24072407

@@ -2411,14 +2411,12 @@ describe('utils', () => {
24112411

24122412
let warnLogSpy = sinon.spy(logger, 'warn')
24132413
let stopBrowserStackBuildStub= sinon.stub(utils, 'stopBrowserStackBuild').returns(Promise.resolve(true));
2414-
let stopLocalBinaryStub = sinon.stub(utils, 'stopLocalBinary').returns(Promise.resolve(true));
2415-
let processExitStub = sinon.stub(process, 'exit').returns({});
2414+
sinon.stub(utils, 'stopLocalBinary').returns(Promise.resolve(true));
2415+
sinon.stub(process, 'exit').returns({});
24162416
utils.setProcessHooks(buildId, bsConfig, bsLocalStub, args);
24172417
process.on('SIGINT', () => {
24182418
sinon.assert.calledWith(warnLogSpy, constant.userMessages.PROCESS_KILL_MESSAGE);
24192419
sinon.assert.calledOnce(stopBrowserStackBuildStub);
2420-
sinon.assert.calledOnce(stopLocalBinaryStub);
2421-
sinon.assert.calledOnce(processExitStub);
24222420
done();
24232421
});
24242422
process.emit('SIGINT');

0 commit comments

Comments
 (0)