mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Stop leaking apiserver in tracing test
This commit is contained in:
parent
dd1a7893d4
commit
89549142c0
@ -74,13 +74,12 @@ endpoint: %s`, listener.Addr().String())), os.FileMode(0755)); err != nil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start the API Server with our tracing configuration
|
// Start the API Server with our tracing configuration
|
||||||
stopCh := make(chan struct{})
|
|
||||||
defer close(stopCh)
|
|
||||||
testServer := kubeapiservertesting.StartTestServerOrDie(t,
|
testServer := kubeapiservertesting.StartTestServerOrDie(t,
|
||||||
kubeapiservertesting.NewDefaultTestServerOptions(),
|
kubeapiservertesting.NewDefaultTestServerOptions(),
|
||||||
[]string{"--tracing-config-file=" + tracingConfigFile.Name()},
|
[]string{"--tracing-config-file=" + tracingConfigFile.Name()},
|
||||||
framework.SharedEtcd(),
|
framework.SharedEtcd(),
|
||||||
)
|
)
|
||||||
|
defer testServer.TearDownFn()
|
||||||
clientConfig := testServer.ClientConfig
|
clientConfig := testServer.ClientConfig
|
||||||
|
|
||||||
// Create a client that creates sampled traces.
|
// Create a client that creates sampled traces.
|
||||||
|
Loading…
Reference in New Issue
Block a user