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

TykTechnologies / tyk / 2546 / 1

Build:
DEFAULT BRANCH: master
Ran 06 Jul 2017 04:07PM UTC
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

06 Jul 2017 04:01PM UTC coverage: 42.418% (-0.08%) from 42.495%
LATEST_GO=true

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

Source Files on job 2546.1 (LATEST_GO=true)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2546
  • Travis Job 2546.1
  • 1bf76816 on github
  • Prev Job for LATEST_GO=true on master (#2543.1)
  • Next Job for LATEST_GO=true on master (#2549.1)
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