mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 01:41:54 -04:00
Stop leaking apiserver in tracing test
This commit is contained in:
parent
dd1a7893d4
commit
89549142c0
1 changed files with 1 additions and 2 deletions
|
|
@ -74,13 +74,12 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
|
|||
}
|
||||
|
||||
// Start the API Server with our tracing configuration
|
||||
stopCh := make(chan struct{})
|
||||
defer close(stopCh)
|
||||
testServer := kubeapiservertesting.StartTestServerOrDie(t,
|
||||
kubeapiservertesting.NewDefaultTestServerOptions(),
|
||||
[]string{"--tracing-config-file=" + tracingConfigFile.Name()},
|
||||
framework.SharedEtcd(),
|
||||
)
|
||||
defer testServer.TearDownFn()
|
||||
clientConfig := testServer.ClientConfig
|
||||
|
||||
// Create a client that creates sampled traces.
|
||||
|
|
|
|||
Loading…
Reference in a new issue