temporarily comment _getPort for tesing

This commit is contained in:
Clark Du 2018-03-19 15:05:02 +08:00
parent e801340107
commit ca1242d5ec
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import path from 'path' import path from 'path'
import fs from 'fs' import fs from 'fs'
import _getPort from 'get-port' // import _getPort from 'get-port'
import { defaultsDeep } from 'lodash' import { defaultsDeep } from 'lodash'
import { requireModule } from '../../lib/common/module' import { requireModule } from '../../lib/common/module'
@ -17,6 +17,8 @@ export function loadFixture(fixture, overrides) {
return defaultsDeep({}, overrides, config) return defaultsDeep({}, overrides, config)
} }
let port = 4000
export function getPort() { export function getPort() {
return _getPort() return port++
} }