提交 2dcb27d9 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

remove express (fix #1523)

上级 59eae406
......@@ -99,7 +99,6 @@
"@types/blessed": "^0.1.10",
"@types/blue-tape": "^0.1.0",
"@types/cuid": "^1.3.0",
"@types/express": "^4.11.1",
"@types/fluent-ffmpeg": "^2.1.0",
"@types/fs-extra": "^5.0.3",
"@types/glob": "^5.0.0p",
......@@ -121,7 +120,6 @@
"check-node-version": "^3.0.0",
"coveralls": "^3.0.0",
"cross-env": "^5.1.6",
"express": "^4.16.3",
"finis": "^0.4.1",
"fluent-ffmpeg": "^2.1.0",
"git-scripts": "git+https://github.com/nkzawa/git-scripts.git",
......
......@@ -21,7 +21,8 @@
import test from 'blue-tape'
// import http from 'http'
import express from 'express'
// import express from 'express'
import net from 'net'
import { getPort } from './get-port'
......@@ -35,11 +36,14 @@ test('getPort() for an available socket port', async t => {
while (ttl-- > 0) {
try {
const app = express()
const server = app.listen(port)
const server = net.createServer(socket => {
console.log(socket)
})
server.listen(port, '127.0.0.1')
serverList.push(server)
port = await getPort(PORT)
serverList.push(server)
} catch (e) {
t.fail('should not exception: ' + e.message + ', ' + e.stack)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册