• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

chromedp / chromedp / 291
68%

Build:
DEFAULT BRANCH: master
Ran 01 Dec 2018 11:56AM UTC
Jobs 2
Files 11
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Dec 2018 11:54AM UTC coverage: 68.517% (+1.8%) from 66.702%
291

push

travis-ci

mvdan
pool: error quickly if we find a port in use

Before the fix, the added test would give a Pool.Allocate error like:

	pool could not connect to 9000: timeout waiting for initial target

The actual underlying error, which can only be seen if one inspects
chrome's stderr, is that it failed to bind to the debugging protocol
port if it was already in use.

This is of course an issue with the environment that chromedp is being
run under, since it was given a port range that wasn't available.
However, the confusing error can lead to developers wasting their time
instead of spotting the error quickly.

Unfortunately, there doesn't seem to be a way to have Chrome exit
immediately if it can't bind to the given port. So, instead of relying
on it, check if the current process can bind to the port first.

Add a test too, where we grab the first port in the pool range, and
check that we get an error that's not confusing.

Fixes #253.

12 of 12 new or added lines in 1 file covered. (100.0%)

1284 of 1874 relevant lines covered (68.52%)

1.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 291.1 01 Dec 2018 11:56AM UTC 0
68.52
Travis Job 291.1
2 291.2 01 Dec 2018 11:59AM UTC 0
68.41
Travis Job 291.2
Source Files on build 291
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #291
  • 98d4b0de on github
  • Prev Build on master (#283)
  • Next Build on master (#297)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc