Skip to content

Commit

Permalink
test timeout multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Feb 13, 2018
1 parent 04a9396 commit 1c42f97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/seneca.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ var it = lab.it
var expect = Code.expect
var assert = Assert

var tmx = parseInt(process.env.TIMEOUT_MULTIPLIER || 1, 10)
console.log('TEST transport tmx=' + tmx)

// timerstub broken on node 0.11
// var timerstub = require('timerstub')
var timerstub = {
Expand Down Expand Up @@ -1403,7 +1406,7 @@ describe('seneca', function() {

function validate(start) {
var end = Date.now()
expect(end - start).below(1500)
expect(end - start).below(1500*tmx)

var mem = process.memoryUsage()
expect(mem.rss).below(200000000)
Expand Down

0 comments on commit 1c42f97

Please sign in to comment.