@@ -2401,7 +2401,7 @@ describe('utils', () => {
2401
2401
} ) ;
2402
2402
2403
2403
describe ( 'setProcessHooks' , ( ) => {
2404
- it . only ( 'should handle "SIGINT" event' , ( done ) => {
2404
+ it ( 'should handle "SIGINT" event' , ( done ) => {
2405
2405
let buildId = 'build_id' ;
2406
2406
let bsConfig = {
2407
2407
@@ -2411,14 +2411,12 @@ describe('utils', () => {
2411
2411
2412
2412
let warnLogSpy = sinon . spy ( logger , 'warn' )
2413
2413
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 ( { } ) ;
2416
2416
utils . setProcessHooks ( buildId , bsConfig , bsLocalStub , args ) ;
2417
2417
process . on ( 'SIGINT' , ( ) => {
2418
2418
sinon . assert . calledWith ( warnLogSpy , constant . userMessages . PROCESS_KILL_MESSAGE ) ;
2419
2419
sinon . assert . calledOnce ( stopBrowserStackBuildStub ) ;
2420
- sinon . assert . calledOnce ( stopLocalBinaryStub ) ;
2421
- sinon . assert . calledOnce ( processExitStub ) ;
2422
2420
done ( ) ;
2423
2421
} ) ;
2424
2422
process . emit ( 'SIGINT' ) ;
0 commit comments