[Pkg-javascript-commits] [node-expat] 05/34: fix test randomely failing
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 10:46:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-expat.
commit 34b710810c730ab53094c3309ca238bd64878c2e
Author: Sonny Piers <sonny at fastmail.net>
Date: Sun Jan 31 15:28:14 2016 +0100
fix test randomely failing
---
test/index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/index.js b/test/index.js
index 0c939c9..5e306bc 100644
--- a/test/index.js
+++ b/test/index.js
@@ -282,7 +282,7 @@ vows.describe('node-expat').addBatch({
var expected = ['wrap', 'short', 'short', 'long', 'short', 'long']
var received = []
- var tolerance = 10 / 100
+ var tolerance = 20 / 100
var expectedRuntime = 1000
var start = new Date()
@@ -304,7 +304,7 @@ vows.describe('node-expat').addBatch({
// test elements received (count. naming, order)
assert.equal(JSON.stringify(received), JSON.stringify(expected))
- // test timing (+-5%)
+ // test timing (+-20%)
var now = new Date()
var diff = now.getTime() - start.getTime()
var max = expectedRuntime + expectedRuntime * tolerance
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-expat.git
More information about the Pkg-javascript-commits
mailing list