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

TykTechnologies / tyk / 3908 / 1
52%
master: %

Build:
Build:
LAST BUILD BRANCH: v2.9.4.8
DEFAULT BRANCH: master
Ran 15 Jan 2018 09:50AM UTC
Files 86
Run time 3s
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

15 Jan 2018 09:43AM UTC coverage: 52.455%. Remained the same
LATEST_GO=true

push

travis-ci

asoorm
bug: fix dns panic during tests

Depending on your router, the dns test panics:

```
$ go19 test -v -race -run TestBatch .
[Jan 15 09:32:30]  INFO coprocess: Disabled feature
=== RUN   TestBatch
panic: Following domain not mocked:localhost.fritz.box.

goroutine 338 [running]:
github.com/TykTechnologies/tyk.(*dnsMockHandler).ServeDNS(0x2922f78, 0x2816a20, 0xc420730400, 0xc4203fa480)
	/Users/ahmet/go/src/github.com/TykTechnologies/tyk/helpers_test.go:539 +0x8cc
github.com/TykTechnologies/tyk/vendor/github.com/miekg/dns.(*Server).serve(0xc4204e6000, 0x280abc0, 0xc42019f3b0, 0x2801cc0, 0x2922f78, 0xc4204fc000, 0x25, 0x200, 0xc42000e030, 0xc4202a05e0, ...)
	/Users/ahmet/go/src/github.com/TykTechnologies/tyk/vendor/github.com/miekg/dns/server.go:558 +0x7a8
created by github.com/TykTechnologies/tyk/vendor/github.com/miekg/dns.(*Server).serveUDP
	/Users/ahmet/go/src/github.com/TykTechnologies/tyk/vendor/github.com/miekg/dns/server.go:514 +0x363
exit status 2
FAIL	github.com/TykTechnologies/tyk	0.346s
```

This PR fixes the issue by automatically pointing to 127.0.0.1 if domain
not in the `domainsToAddresses` map.

7308 of 13932 relevant lines covered (52.45%)

0.58 hits per line

Source Files on job 3908.1 (LATEST_GO=true)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3908
  • Travis Job 3908.1
  • 48ec468f on github
  • Prev Job for LATEST_GO=true on bug-fix-dns-for-testing (#3907.1)
  • Next Job for LATEST_GO=true on bug-fix-dns-for-testing (#3910.1)
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