From 6bda6e3f22e6d7b031aa73edd0e6830a0e53a85e Mon Sep 17 00:00:00 2001 From: Dean Shub Date: Tue, 13 Apr 2021 10:12:23 +0300 Subject: [PATCH 1/5] Fix tests timeout --- test/analyzer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/analyzer.js b/test/analyzer.js index ac30db9c..6bf761cb 100644 --- a/test/analyzer.js +++ b/test/analyzer.js @@ -26,7 +26,7 @@ describe('Analyzer', function () { it('should support stats files with all the information in `children` array', async function () { generateReportFrom('with-children-array.json'); - await expectValidReport(); + return expectValidReport(); }); it('should generate report containing worker bundles', async function () { From f4d78016d77e0497c166709a84bea8e451d4adcd Mon Sep 17 00:00:00 2001 From: Dean Shub Date: Tue, 13 Apr 2021 10:20:01 +0300 Subject: [PATCH 2/5] wip --- test/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugin.js b/test/plugin.js index b9e1369a..4fa09e8a 100644 --- a/test/plugin.js +++ b/test/plugin.js @@ -15,7 +15,7 @@ describe('Plugin', function () { describe('Plugin', function () { let nightmare; - this.timeout(3000); + this.timeout(4000); before(function () { const Nightmare = require('nightmare'); From cfc503e204bab22c8bb2d1958fd8b15a63c9298b Mon Sep 17 00:00:00 2001 From: Dean Shub Date: Tue, 13 Apr 2021 10:22:25 +0300 Subject: [PATCH 3/5] increasing timeout --- test/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugin.js b/test/plugin.js index 4fa09e8a..aec3c6cc 100644 --- a/test/plugin.js +++ b/test/plugin.js @@ -15,7 +15,7 @@ describe('Plugin', function () { describe('Plugin', function () { let nightmare; - this.timeout(4000); + this.timeout(5000); before(function () { const Nightmare = require('nightmare'); From 8c0a180764ef10f5381f4e83567dc8a23094a794 Mon Sep 17 00:00:00 2001 From: Dean Shub Date: Tue, 13 Apr 2021 10:45:01 +0300 Subject: [PATCH 4/5] Update test/plugin.js Co-authored-by: Vesa Laakso <482561+valscion@users.noreply.github.com> --- test/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugin.js b/test/plugin.js index aec3c6cc..05c3f18c 100644 --- a/test/plugin.js +++ b/test/plugin.js @@ -15,7 +15,7 @@ describe('Plugin', function () { describe('Plugin', function () { let nightmare; - this.timeout(5000); + this.timeout(15000); before(function () { const Nightmare = require('nightmare'); From 358b03ccf38534c2f74a7c831d239a6e9fffd886 Mon Sep 17 00:00:00 2001 From: Dean Shub Date: Tue, 13 Apr 2021 10:48:40 +0300 Subject: [PATCH 5/5] increasing timeout --- test/analyzer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/analyzer.js b/test/analyzer.js index 6bf761cb..9a1cdcc8 100644 --- a/test/analyzer.js +++ b/test/analyzer.js @@ -7,7 +7,7 @@ const childProcess = require('child_process'); let nightmare; describe('Analyzer', function () { - this.timeout(5000); + this.timeout(15000); before(function () { const Nightmare = require('nightmare'); @@ -26,7 +26,7 @@ describe('Analyzer', function () { it('should support stats files with all the information in `children` array', async function () { generateReportFrom('with-children-array.json'); - return expectValidReport(); + await expectValidReport(); }); it('should generate report containing worker bundles', async function () {