Skip to content

Commit

Permalink
fix(tests): remove delay
Browse files Browse the repository at this point in the history
To speed up tests, remove the delay between test cases.
  • Loading branch information
dnlup committed Jul 16, 2019
1 parent 51c49f6 commit a6fce86
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/avaPlugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ test.afterEach(async t => {
await rimraf(t.context.path)
})

let count = 1

async function plugin (t, input = {}) {
// Adding a sleep to avoid too much stress without running tests serially
await sleep(2000 * count++)
const { plugins = {}, invokeOpts = [] } = input
const project = await create(t.context.project, {
plugins
Expand All @@ -72,10 +68,6 @@ async function plugin (t, input = {}) {
t.pass()
}

async function sleep (ms) {
return new Promise(resolve => setTimeout(resolve, ms))
}

for (const avaConfigLocation of ['ava.config.js', 'package.json']) {
// Plain JS setup - not tested since the default app created by @vue/cli is
// uses export default {} in its HelloWorld.vue compoenent.
Expand Down

0 comments on commit a6fce86

Please sign in to comment.