@@ -64,7 +64,7 @@ describe('test/stop.test.js', () => {
64
64
65
65
// no way to handle the SIGTERM signal in windows ?
66
66
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' ) ) ;
68
68
assert ( app . stdout . includes ( '[master] exit with code:0' ) ) ;
69
69
assert ( app . stdout . includes ( '[app_worker] exit with code:0' ) ) ;
70
70
// assert(app.stdout.includes('[agent_worker] exit with code:0'));
@@ -106,7 +106,7 @@ describe('test/stop.test.js', () => {
106
106
107
107
// no way to handle the SIGTERM signal in windows ?
108
108
if ( ! isWin ) {
109
- assert ( stdout . includes ( '[master] receive signal SIGTERM, closing' ) ) ;
109
+ assert ( stdout . includes ( '[master] master is killed by signal SIGTERM, closing' ) ) ;
110
110
assert ( stdout . includes ( '[master] exit with code:0' ) ) ;
111
111
assert ( stdout . includes ( '[app_worker] exit with code:0' ) ) ;
112
112
}
@@ -191,7 +191,7 @@ describe('test/stop.test.js', () => {
191
191
192
192
// no way to handle the SIGTERM signal in windows ?
193
193
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' ) ) ;
195
195
assert ( app . stdout . includes ( '[master] exit with code:0' ) ) ;
196
196
assert ( app . stdout . includes ( '[app_worker] exit with code:0' ) ) ;
197
197
// assert(app.stdout.includes('[agent_worker] exit with code:0'));
@@ -248,7 +248,7 @@ describe('test/stop.test.js', () => {
248
248
249
249
// no way to handle the SIGTERM signal in windows ?
250
250
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' ) ) ;
252
252
assert ( app . stdout . includes ( '[master] exit with code:0' ) ) ;
253
253
assert ( app . stdout . includes ( '[app_worker] exit with code:0' ) ) ;
254
254
// assert(app.stdout.includes('[agent_worker] exit with code:0'));
@@ -261,7 +261,7 @@ describe('test/stop.test.js', () => {
261
261
262
262
// no way to handle the SIGTERM signal in windows ?
263
263
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' ) ) ;
265
265
assert ( app2 . stdout . includes ( '[master] exit with code:0' ) ) ;
266
266
assert ( app2 . stdout . includes ( '[app_worker] exit with code:0' ) ) ;
267
267
}
@@ -275,7 +275,7 @@ describe('test/stop.test.js', () => {
275
275
beforeEach ( function * ( ) {
276
276
yield utils . cleanup ( timeoutPath ) ;
277
277
app = coffee . fork ( eggBin , [ 'start' , '--workers=2' , '--title=stop-timeout' , timeoutPath ] ) ;
278
- // app.debug();
278
+ app . debug ( ) ;
279
279
app . expect ( 'code' , 0 ) ;
280
280
281
281
yield sleep ( waitTime ) ;
@@ -304,7 +304,7 @@ describe('test/stop.test.js', () => {
304
304
305
305
// no way to handle the SIGTERM signal in windows ?
306
306
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' ) ) ;
308
308
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 / ) ) ;
309
309
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 / ) ) ;
310
310
}
@@ -326,7 +326,7 @@ describe('test/stop.test.js', () => {
326
326
327
327
// no way to handle the SIGTERM signal in windows ?
328
328
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' ) ) ;
330
330
assert ( app . stdout . includes ( '[master] exit with code:0' ) ) ;
331
331
assert ( app . stdout . includes ( '[agent_worker] exit with code:0' ) ) ;
332
332
}
0 commit comments