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

ICRAR / ngas / 332 / 5
68%
master: 69%

Build:
Build:
LAST BUILD BRANCH: config_use_prepared_stmts_for_clients
DEFAULT BRANCH: master
Ran 05 Apr 2019 07:28AM UTC
Files 160
Run time 9s
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

05 Apr 2019 07:11AM UTC coverage: 67.834% (+0.004%) from 67.83%
332.5

push

travis-ci

rtobar
Don't let test sockets linger for too long

We have seen already in a few occasions that starting up a unit test
server in MacOS fails because its "address is in use". This is triggered
most easily when starting a cluster of servers, which I would guess adds
more pressure to the system. In any case, this is clearly caused by the
check we do on the port availability before starting the actual server.
Somehow the socket, which we explicitly close after bind(), is still
seen by the system. I couldn't find any documentation about this
apparent difference between MacOS and Linux, but at least it seems clear
that when enabling the SO_LINGER option a call to close() should return
immediately and should not defer the closing of the socket to a
background task on the kernel.

This solution seems to be working correctly, so we'll leave it in. This
method is currently used only at unit test time anyway, so setting this
option in this particular socket is harmless.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

12942 of 19079 relevant lines covered (67.83%)

0.68 hits per line

Source Files on job 332.5
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 291
  • Travis Job 332.5
  • 57e5af26 on github
  • Prev Job for on various_improvements (#331.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc