@@ -64,7 +64,7 @@ describe('test/stop.test.js', () => {
6464
6565 // no way to handle the SIGTERM signal in windows ?
6666 if ( ! isWin ) {
67- assert ( app . stdout . includes ( '[master] receive signal SIGTERM, closing' ) ) ;
67+ assert ( app . stdout . includes ( '[master] master is killed by signal SIGTERM, closing' ) ) ;
6868 assert ( app . stdout . includes ( '[master] exit with code:0' ) ) ;
6969 assert ( app . stdout . includes ( '[app_worker] exit with code:0' ) ) ;
7070 // assert(app.stdout.includes('[agent_worker] exit with code:0'));
@@ -106,7 +106,7 @@ describe('test/stop.test.js', () => {
106106
107107 // no way to handle the SIGTERM signal in windows ?
108108 if ( ! isWin ) {
109- assert ( stdout . includes ( '[master] receive signal SIGTERM, closing' ) ) ;
109+ assert ( stdout . includes ( '[master] master is killed by signal SIGTERM, closing' ) ) ;
110110 assert ( stdout . includes ( '[master] exit with code:0' ) ) ;
111111 assert ( stdout . includes ( '[app_worker] exit with code:0' ) ) ;
112112 }
@@ -191,7 +191,7 @@ describe('test/stop.test.js', () => {
191191
192192 // no way to handle the SIGTERM signal in windows ?
193193 if ( ! isWin ) {
194- assert ( app . stdout . includes ( '[master] receive signal SIGTERM, closing' ) ) ;
194+ assert ( app . stdout . includes ( '[master] master is killed by signal SIGTERM, closing' ) ) ;
195195 assert ( app . stdout . includes ( '[master] exit with code:0' ) ) ;
196196 assert ( app . stdout . includes ( '[app_worker] exit with code:0' ) ) ;
197197 // assert(app.stdout.includes('[agent_worker] exit with code:0'));
@@ -248,7 +248,7 @@ describe('test/stop.test.js', () => {
248248
249249 // no way to handle the SIGTERM signal in windows ?
250250 if ( ! isWin ) {
251- assert ( app . stdout . includes ( '[master] receive signal SIGTERM, closing' ) ) ;
251+ assert ( app . stdout . includes ( '[master] master is killed by signal SIGTERM, closing' ) ) ;
252252 assert ( app . stdout . includes ( '[master] exit with code:0' ) ) ;
253253 assert ( app . stdout . includes ( '[app_worker] exit with code:0' ) ) ;
254254 // assert(app.stdout.includes('[agent_worker] exit with code:0'));
@@ -261,7 +261,7 @@ describe('test/stop.test.js', () => {
261261
262262 // no way to handle the SIGTERM signal in windows ?
263263 if ( ! isWin ) {
264- assert ( app2 . stdout . includes ( '[master] receive signal SIGTERM, closing' ) ) ;
264+ assert ( app2 . stdout . includes ( '[master] master is killed by signal SIGTERM, closing' ) ) ;
265265 assert ( app2 . stdout . includes ( '[master] exit with code:0' ) ) ;
266266 assert ( app2 . stdout . includes ( '[app_worker] exit with code:0' ) ) ;
267267 }
@@ -275,7 +275,7 @@ describe('test/stop.test.js', () => {
275275 beforeEach ( function * ( ) {
276276 yield utils . cleanup ( timeoutPath ) ;
277277 app = coffee . fork ( eggBin , [ 'start' , '--workers=2' , '--title=stop-timeout' , timeoutPath ] ) ;
278- // app.debug();
278+ app . debug ( ) ;
279279 app . expect ( 'code' , 0 ) ;
280280
281281 yield sleep ( waitTime ) ;
@@ -304,7 +304,7 @@ describe('test/stop.test.js', () => {
304304
305305 // no way to handle the SIGTERM signal in windows ?
306306 if ( ! isWin ) {
307- assert ( app . stdout . includes ( '[master] receive signal SIGTERM, closing' ) ) ;
307+ assert ( app . stdout . includes ( '[master] master is killed by signal SIGTERM, closing' ) ) ;
308308 assert ( app . stdout . match ( / a p p _ w o r k e r # \d + : \d + d i s c o n n e c t / ) ) ;
309309 assert ( app . stdout . match ( / d o n ' t f o r k , b e c a u s e w o r k e r : \d + w i l l b e k i l l s o o n / ) ) ;
310310 }
@@ -326,7 +326,7 @@ describe('test/stop.test.js', () => {
326326
327327 // no way to handle the SIGTERM signal in windows ?
328328 if ( ! isWin ) {
329- assert ( app . stdout . includes ( '[master] receive signal SIGTERM, closing' ) ) ;
329+ assert ( app . stdout . includes ( '[master] master is killed by signal SIGTERM, closing' ) ) ;
330330 assert ( app . stdout . includes ( '[master] exit with code:0' ) ) ;
331331 assert ( app . stdout . includes ( '[agent_worker] exit with code:0' ) ) ;
332332 }
0 commit comments