We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d21a5a4 commit bba8bd4Copy full SHA for bba8bd4
lib/utils.js
@@ -191,7 +191,9 @@ module.exports.test = {
191
submittedData(dataFile) {
192
return function (key) {
193
if (!fs.existsSync(dataFile)) {
194
- const waitTill = new Date(new Date().getTime() + 1 * 1000) // wait for one sec for file to be created
+ // Increase wait time for CI environments where form submission may be slower
195
+ const waitTime = process.env.CI ? 10 * 1000 : 1 * 1000 // 10 seconds in CI, 1 second otherwise
196
+ const waitTill = new Date(new Date().getTime() + waitTime)
197
while (waitTill > new Date()) {}
198
}
199
0 commit comments