tests: CoreDNSServerAndPorts (#972)
* tests: CoreDNSServerAndPorts Copy from kubernetes.go and renamed to fit the style, adapted almost all callers. This is a mechanicl change, no testdata was changed. * typos
This commit is contained in:
parent
ea53f8c219
commit
f901b0cefa
24 changed files with 39 additions and 143 deletions
|
@ -20,12 +20,10 @@ func TestGrpc(t *testing.T) {
|
|||
whoami
|
||||
}
|
||||
`
|
||||
g, err := CoreDNSServer(corefile)
|
||||
g, _, tcp, err := CoreDNSServerAndPorts(corefile)
|
||||
if err != nil {
|
||||
t.Fatalf("Could not get CoreDNS serving instance: %s", err)
|
||||
}
|
||||
|
||||
_, tcp := CoreDNSServerPorts(g, 0)
|
||||
defer g.Stop()
|
||||
|
||||
conn, err := grpc.Dial(tcp, grpc.WithInsecure(), grpc.WithBlock(), grpc.WithTimeout(5*time.Second))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue