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

View File

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