upgrade test-runner

This commit is contained in:
Lloyd Brookes
2019-11-06 15:13:38 +00:00
parent fb1dc8a574
commit c089eb11b8
5 changed files with 320 additions and 218 deletions

View File

@ -3,7 +3,7 @@ const fetch = require('node-fetch')
const LocalWebServer = require('../')
const a = require('assert')
const tom = module.exports = new Tom('api')
const tom = module.exports = new Tom()
tom.test('basic', async function () {
const port = 9000 + this.index

View File

@ -3,7 +3,7 @@ const a = require('assert')
const WsCli = require('../lib/cli-app')
const fetch = require('node-fetch')
const tom = module.exports = new Tom('cli', { concurrency: 1 })
const tom = module.exports = new Tom({ maxConcurrency: 1 })
tom.test('simple', async function () {
const port = 7500 + this.index

View File

@ -4,7 +4,7 @@ const LocalWebServer = require('../')
const WsCli = require('../lib/cli-app')
const a = require('assert')
const tom = module.exports = new Tom('sequential', { concurrency: 1 })
const tom = module.exports = new Tom({ maxConcurrency: 1 })
let origCwd = ''