increase timeout here in case this wouldnt be enough for the CI server

This commit is contained in:
Bruno Windels 2018-09-12 16:47:24 +02:00
parent 29aec256df
commit 7bcb255a2c

View file

@ -25,13 +25,13 @@ module.exports.scrollToTimelineTop = async function(session) {
let timeoutHandle = null;
// set scrollTop to 0 in a loop and check every 50ms
// if content became available (scrollTop not being 0 anymore),
// assume everything is loaded after 1000ms
// assume everything is loaded after 3s
do {
if (timelineScrollView.scrollTop !== 0) {
if (timeoutHandle) {
clearTimeout(timeoutHandle);
}
timeoutHandle = setTimeout(() => timedOut = true, 1000);
timeoutHandle = setTimeout(() => timedOut = true, 3000);
timelineScrollView.scrollTop = 0;
} else {
await new Promise((resolve) => setTimeout(resolve, 50));