@@ -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