diff options
author | 2017-10-20 22:53:17 +0100 | |
---|---|---|
committer | 2017-10-20 22:53:17 +0100 | |
commit | d64b684831aff2df86d9cea8e23bf57c85b6772f (patch) | |
tree | 7bf9e27b01d11b648255be9dc00e5964747772ba /test/kubernetes_test.go | |
parent | c1f67493de3f13373082ee2e1ec6234c15642854 (diff) | |
download | coredns-d64b684831aff2df86d9cea8e23bf57c85b6772f.tar.gz coredns-d64b684831aff2df86d9cea8e23bf57c85b6772f.tar.zst coredns-d64b684831aff2df86d9cea8e23bf57c85b6772f.zip |
plugin/kubernetes: implement HasSynced() (#1155)
* plugin/kubernetes: wait until api is ready
Wait for HasSynced before allowing startup to avoid startup race.
Also do a small refactor in findServices() to pull a check out of the
loop - only needs to be done once.
* sigh
Diffstat (limited to 'test/kubernetes_test.go')
-rw-r--r-- | test/kubernetes_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/kubernetes_test.go b/test/kubernetes_test.go index c3004a951..b028373f5 100644 --- a/test/kubernetes_test.go +++ b/test/kubernetes_test.go @@ -279,8 +279,7 @@ func doIntegrationTests(t *testing.T, corefile string, testCases []test.Case) { } defer server.Stop() - // Work-around for timing condition that results in no-data being returned in test environment. - time.Sleep(3 * time.Second) + time.Sleep(1 * time.Second) for _, tc := range testCases { |