From 4c0700e68ea87aebc026753af9bad1185fadfb3e Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Wed, 11 Oct 2023 17:49:24 +0200 Subject: [PATCH] Increase tests timeout --- test/block-attributes.spec.js | 2 +- test/kroki-client.spec.js | 2 +- test/preprocess.spec.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/block-attributes.spec.js b/test/block-attributes.spec.js index 1360d32..646b217 100644 --- a/test/block-attributes.spec.js +++ b/test/block-attributes.spec.js @@ -9,7 +9,7 @@ const asciidoctorKroki = require('../src/asciidoctor-kroki.js') const asciidoctor = require('@asciidoctor/core')() describe('Block attributes', function () { - this.timeout(10000) + this.timeout(30000) describe('When extension is registered', () => { it('should convert a diagram with an explicit width and height', () => { const input = ` diff --git a/test/kroki-client.spec.js b/test/kroki-client.spec.js index 3952981..e642f6a 100644 --- a/test/kroki-client.spec.js +++ b/test/kroki-client.spec.js @@ -11,7 +11,7 @@ const httpClient = require('../src/http/node-http.js') const asciidoctor = require('@asciidoctor/core')() describe('Kroki HTTP client', function () { - this.timeout(10000) + this.timeout(30000) describe('kroki-http-method attribute', () => { it('should use post method when kroki-http-method value is post', () => { const doc = asciidoctor.load('', { attributes: { 'kroki-http-method': 'post' } }) diff --git a/test/preprocess.spec.js b/test/preprocess.spec.js index 813c586..fa9855e 100644 --- a/test/preprocess.spec.js +++ b/test/preprocess.spec.js @@ -19,7 +19,7 @@ const asciidoctor = require('@asciidoctor/core')() const { preprocessVegaLite } = require('../src/preprocess.js') describe('Vega-Lite preprocessing', function () { - this.timeout(10000) + this.timeout(30000) const cwd = process.cwd().replace(/\\/g, '/') const relativePath = 'test/fixtures/vegalite-data.csv' const diagramTextWithInlinedCsvFile = JSON.stringify({ @@ -147,7 +147,7 @@ Error: ENOENT: no such file or directory, open '${unexistingPath}'`) const { preprocessPlantUML } = require('../src/preprocess.js') describe('PlantUML preprocessing', function () { - this.timeout(10000) + this.timeout(30000) const remoteBasePath = 'https://raw.githubusercontent.com/ggrossetie/asciidoctor-kroki/master/' const localUnexistingFilePath = 'test/fixtures/plantuml/unexisting.iuml' const localExistingFilePath = 'test/fixtures/plantuml/styles/general.iuml'