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

ICRAR / ngas / 332
68%
master: 69%

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

pending completion
332

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>

12993 of 19079 relevant lines covered (68.1%)

4.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 332.1 (DB=sqlite3) 05 Apr 2019 07:28AM UTC 0
67.83
Travis Job 332.1
2 332.2 (DB=mysql) 05 Apr 2019 07:29AM UTC 0
67.77
Travis Job 332.2
3 332.3 (DB=postgresql) 05 Apr 2019 07:29AM UTC 0
67.89
Travis Job 332.3
4 332.4 05 Apr 2019 07:42AM UTC 0
67.77
Travis Job 332.4
5 332.5 05 Apr 2019 07:28AM UTC 0
67.83
Travis Job 332.5
6 332.6 05 Apr 2019 07:39AM UTC 0
67.9
Travis Job 332.6
7 332.7 05 Apr 2019 07:56AM UTC 0
67.83
Travis Job 332.7
Source Files on build 332
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #332
  • 57e5af26 on github
  • Prev Build on various_improvements (#331)
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