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

TykTechnologies / tyk / 1991
38%
master: %

Build:
Build:
LAST BUILD BRANCH: v2.9.4.8
DEFAULT BRANCH: master
Ran 14 Mar 2017 02:15PM UTC
Jobs 1
Files 86
Run time 5s
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
1991

push

travis-ci

buger
Fix API reloads and add related tests

It broke because reload functionality was using DefaultServeMux for
routing, but our initial `listen` logic used custom muxer, which is
created automatically if you pass non nil second argument to
`http.Serve`.

Change which broke this functionality (#596) was intended to fix
`panic` caused by multiple registrations of “/“ route handle #531.

We did not noticed this bug because we had no tests covering API
reloads, and this PR adds them as well.

This PR fixes API reloads, and still ensure that no multiple route
registrations will be made. It is achieved by creating new
`newServeMux` and updating `http.DefaultServeMux` with it.

Note that our routing and reload functionality have a lot of
duplication (in 3 places), and should be unified one day. Goal of this
PR is to fix the bug, and not to make refactoring.

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

5366 of 14289 relevant lines covered (37.55%)

0.41 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1991.2 (LATEST_GO=true) 14 Mar 2017 02:15PM UTC 0
37.55
Travis Job 1991.2
Source Files on build 1991
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1991
  • ac0c7671 on github
  • Next Build on reload-integration-tests (#1994)
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

© 2025 Coveralls, Inc