mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
Relax polling to check only every 100ms
This commit is contained in:
parent
1c7b473243
commit
d494966759
@ -16,12 +16,15 @@ ChromedriverURLBase = "/wd/hub"
|
||||
ChromedriverStatusURL = "http://localhost:#{ChromedriverPort}#{ChromedriverURLBase}/status"
|
||||
|
||||
pollChromeDriver = (done) ->
|
||||
http.get(ChromedriverStatusURL, (response) ->
|
||||
if response.statusCode is 200
|
||||
done()
|
||||
else
|
||||
pollChromeDriver(done)
|
||||
)
|
||||
checkStatus = ->
|
||||
http.get(ChromedriverStatusURL, (response) ->
|
||||
if response.statusCode is 200
|
||||
done()
|
||||
else
|
||||
pollChromeDriver(done)
|
||||
)
|
||||
|
||||
setTimeout(checkStatus, 100)
|
||||
|
||||
buildAtomClient = (args, env) ->
|
||||
client = webdriverio.remote(
|
||||
|
Loading…
Reference in New Issue
Block a user