From 14c86895058d1f4583fd2b011b9711ad4f367f27 Mon Sep 17 00:00:00 2001 From: "Zhuohuan LI (CARPE DIEM)" Date: Thu, 27 Oct 2016 04:20:26 +0800 Subject: [PATCH] ava run concurrency so we have to use test.serial if want to check child process pids. --- test/webdriver.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/webdriver.spec.ts b/test/webdriver.spec.ts index cff4ce55..e13c1a29 100644 --- a/test/webdriver.spec.ts +++ b/test/webdriver.spec.ts @@ -18,7 +18,7 @@ import { * if 2 tests run parallel in the same process, * there will have race conditions for the conflict of `getBrowserPids()` */ -test('WebDriver process create & quit test', async t => { +test.serial('WebDriver process create & quit test', async t => { const b = new PuppetWebBrowser() t.truthy(b, 'should instanciate a browser') @@ -43,7 +43,7 @@ test('WebDriver process create & quit test', async t => { }) -test('WebDriver smoke testing', async t => { +test.serial('WebDriver smoke testing', async t => { const wb = new PuppetWebBrowser() t.truthy(wb, 'Browser instnace') -- GitLab