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

TykTechnologies / tyk / 2546

Build:
DEFAULT BRANCH: master
Ran 06 Jul 2017 04:07PM UTC
Jobs 1
Files 84
Run time 4s
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
2546

push

travis-ci

buger
all: protect apisByID with a rwmutex

Like in the case of the global policies map, reloads may swap this map
while other goroutines are using it. Add a test too.

Fixes the following race report from the test without the fix:

	WARNING: DATA RACE
	Write at 0x0000018a9fd8 by goroutine 494:
	  github.com/TykTechnologies/tyk.loadApps()
	      /home/mvdan/go/src/github.com/TykTechnologies/tyk/api_loader.go:622 +0xa0d
	  github.com/TykTechnologies/tyk.loadSampleAPI()
	      /home/mvdan/go/src/github.com/TykTechnologies/tyk/api_test.go:45 +0xd5
	  github.com/TykTechnologies/tyk.TestReloadApisRace()
	      /home/mvdan/go/src/github.com/TykTechnologies/tyk/gateway_test.go:973 +0x7c
	  testing.tRunner()
	      /home/mvdan/tip/src/testing/testing.go:754 +0x16c

	Previous read at 0x0000018a9fd8 by goroutine 394:
	  github.com/TykTechnologies/tyk.TestReloadApisRace.func1()
	      /home/mvdan/go/src/github.com/TykTechnologies/tyk/gateway_test.go:969 +0x4e

5774 of 13612 relevant lines covered (42.42%)

0.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2546.1 (LATEST_GO=true) 06 Jul 2017 04:07PM UTC 0
42.42
Travis Job 2546.1
Source Files on build 2546
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2546
  • 1bf76816 on github
  • Prev Build on master (#2543)
  • Next Build on master (#2549)
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