Revert "temporarily comment _getPort for tesing"

This reverts commit ca1242d5ec.
This commit is contained in:
Clark Du 2018-03-19 15:22:35 +08:00
parent a22821af1b
commit 17b01d0aa8

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,8 +17,6 @@ export function loadFixture(fixture, overrides) {
return defaultsDeep({}, overrides, config)
}
let port = 4000
export function getPort() {
return port++
return _getPort()
}