mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[ftr/chromedriver] replace comments with debug logs
This commit is contained in:
parent
ee5e442c65
commit
a84f75ca11
1 changed files with 4 additions and 2 deletions
|
@ -41,12 +41,14 @@ export function createLocalChromedriverApi(log, url) {
|
|||
while (true) {
|
||||
log.debug('[chromedriver:ping] attempting to reach chromedriver at %j', url);
|
||||
if (await ping(url)) {
|
||||
// chromedriver is running and accepting connections
|
||||
log.debug('[chromedriver:ping] success');
|
||||
break;
|
||||
} else {
|
||||
log.debug('[chromedriver:ping] failure');
|
||||
}
|
||||
|
||||
if ((Date.now() - pingsStartedAt) < START_TIMEOUT) {
|
||||
// chromedriver did not respond, wait for PING_INTERVAL and then try again
|
||||
log.debug('[chromedriver:ping] waiting for %d before next ping', PING_INTERVAL);
|
||||
await delay(PING_INTERVAL);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue