From 9ec223a161e0d896b89bb6a1cdf1e1c1079db835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TZ=20=7C=20=E5=A4=A9=E7=8C=AA?= Date: Tue, 17 Jan 2017 18:16:16 +0800 Subject: [PATCH] test: remove only (#28) --- test/egg-dev.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/egg-dev.test.js b/test/egg-dev.test.js index ca3dbca6..6e1e1a4f 100644 --- a/test/egg-dev.test.js +++ b/test/egg-dev.test.js @@ -25,7 +25,7 @@ describe('egg-bin dev', () => { .end(done); }); - it.only('should startCluster with -p', done => { + it('should startCluster with -p', done => { coffee.fork(eggBin, [ 'dev', '-p', '6001' ], { cwd: appdir }) // .debug() .expect('stdout', `{"baseDir":"${appdir}","workers":1,"port":"6001","customEgg":"${customEgg}"}\n`) @@ -55,7 +55,7 @@ describe('egg-bin dev', () => { it('should auto detect available port', done => { coffee.fork(eggBin, [ 'dev' ], { cwd: appdir }) // .debug() - .expect('stdout', `{"baseDir":"${appdir}","workers":1,"customEgg":"${customEgg}"}\n`) + .expect('stdout', `{"baseDir":"${appdir}","workers":1,"port":"7002","customEgg":"${customEgg}"}\n`) .expect('stderr', /\[egg-bin] server port 7001 is in use/) .expect('code', 0) .end(done);