From b9f30d77bbb9393aac6937d459c652e823f6e39f Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Mon, 20 Jul 2015 17:13:47 +0200 Subject: [PATCH] test(import+export): increase timeouts --- test/integration/model/BpmnModdleSpec.js | 4 +++- test/spec/ViewerSpec.js | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/integration/model/BpmnModdleSpec.js b/test/integration/model/BpmnModdleSpec.js index e9e5dc44..7097f3b8 100644 --- a/test/integration/model/BpmnModdleSpec.js +++ b/test/integration/model/BpmnModdleSpec.js @@ -50,7 +50,9 @@ describe('bpmn-moddle', function() { // when parse(xml, function(err) { - expect((new Date().getTime() - start)).to.be.below(500); + + // parsing a XML document should not take too long + expect((new Date().getTime() - start)).to.be.below(1000); done(err); }); diff --git a/test/spec/ViewerSpec.js b/test/spec/ViewerSpec.js index 300c78f6..4d43378f 100644 --- a/test/spec/ViewerSpec.js +++ b/test/spec/ViewerSpec.js @@ -217,8 +217,7 @@ describe('Viewer', function() { }); - it - ('should handle invalid namespaced element', function(done) { + it('should handle invalid namespaced element', function(done) { var xml = require('../fixtures/bpmn/error/categoryValue.bpmn'); @@ -355,8 +354,8 @@ describe('Viewer', function() { // then expect(isValid(svg)).to.be.true; - // no svg export should take more than 500ms - expect(currentTime() - time).to.be.below(500); + // no svg export should not take too long + expect(currentTime() - time).to.be.below(1000); done(); }); @@ -367,7 +366,7 @@ describe('Viewer', function() { it('should remove outer-makers on export', function(done) { // given - var xml = require('../fixtures/bpmn/complex.bpmn'); + var xml = require('../fixtures/bpmn/simple.bpmn'); function appendTestRect(svgDoc) { var rect = document.createElementNS(svgDoc.namespaceURI, 'rect'); rect.setAttribute('class', 'outer-bound-marker');