Skip to content

Commit

Permalink
Increase tests timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Oct 11, 2023
1 parent 45866b2 commit 4c0700e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/block-attributes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `
Expand Down
2 changes: 1 addition & 1 deletion test/kroki-client.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' } })
Expand Down
4 changes: 2 additions & 2 deletions test/preprocess.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 4c0700e

Please sign in to comment.