aboutsummaryrefslogtreecommitdiff
path: root/plugin/reload/setup.go
diff options
context:
space:
mode:
authorGravatar mrasu <m.rasu.hitsuji@gmail.com> 2019-02-17 17:33:51 +0900
committerGravatar Miek Gieben <miek@miek.nl> 2019-02-17 08:33:51 +0000
commit643dfd7419b20297002c53cf18ed0470c56f9813 (patch)
treeb3581a73bfec675075fb44766bc5790aae48c113 /plugin/reload/setup.go
parentd42d80c4f6750a98d3cc779a593160ff43dbf655 (diff)
downloadcoredns-643dfd7419b20297002c53cf18ed0470c56f9813.tar.gz
coredns-643dfd7419b20297002c53cf18ed0470c56f9813.tar.zst
coredns-643dfd7419b20297002c53cf18ed0470c56f9813.zip
Fix a flaky test by not depending on Google (#2565)
TestLookupAutoPathErratic sometimes fail on TravisCI saying below ``` === RUN TestLookupAutoPathErratic --- FAIL: TestLookupAutoPathErratic (8.30s) erratic_autopath_test.go:39: Test 0, failed to sent query: "read udp [::1]:39758->[::1]:56643: i/o timeout" FAIL ``` The failure happens when Google replies slowly. This PR changes to not use Google but run CoreDNS locally and proxy to the server. --- Because the failure depends on Google, sometimes it happens frequently but sometimes it doesn't happen. I hope following test help you reproduce it. ``` func TestLookupAutoPathErratic2(t *testing.T) { for i := 0; i < 200; i++ { TestLookupAutoPathErratic(t) } } ``` or I can reproduce it by changing proxy to other DNS like 1.1.1.1 instead of 8.8.8.8 too
Diffstat (limited to 'plugin/reload/setup.go')
0 files changed, 0 insertions, 0 deletions