mark NewTempServer as Deprecated

Please use NewTempServerWithCleanup instead

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
pull/8707/head
Li Zhijian 5 years ago
parent 35c5268d9d
commit cccc2867ea

@ -50,6 +50,8 @@ func NewTempServerWithCleanup(t *testing.T, glob string) (*Server, error) {
// //
// The caller is responsible for destroying the temp directory as well as stopping // The caller is responsible for destroying the temp directory as well as stopping
// the server. // the server.
//
// Deprecated: use NewTempServerWithCleanup
func NewTempServer(glob string) (*Server, error) { func NewTempServer(glob string) (*Server, error) {
tdir, err := ioutil.TempDir("", "helm-repotest-") tdir, err := ioutil.TempDir("", "helm-repotest-")
if err != nil { if err != nil {

Loading…
Cancel
Save