Skip to content

Commit 859ba35

Browse files
author
John Doherty
authored
Merge pull request #4 from aashwin/patch-1
Update world.js to check for user-defined global.DEFAULT_TIMEOUT before setting default
2 parents 181401a + 1c5cedd commit 859ba35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runtime/world.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ var fs = require('fs-plus'),
1818
assert = require("chai").assert,
1919
reporter = require('cucumber-html-reporter'),
2020
cucumberJunit = require('cucumber-junit');
21-
22-
global.DEFAULT_TIMEOUT = 10 * 1000; // 10 second default
23-
21+
if(!global.DEFAULT_TIMEOUT){
22+
global.DEFAULT_TIMEOUT = 10 * 1000; // 10 second default
23+
}
2424
/**
2525
* create the selenium browser based on global var set in index.js
2626
*/
@@ -205,4 +205,4 @@ module.exports = function () {
205205
});
206206
}
207207
});
208-
};
208+
};

0 commit comments

Comments
 (0)