increase timeout here in case this wouldnt be enough for the CI server
This commit is contained in:
parent
29aec256df
commit
7bcb255a2c
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue