@ -172,7 +172,7 @@ func TestIsTar(t *testing.T) {
func TestDownloadTo ( t * testing . T ) {
func TestDownloadTo ( t * testing . T ) {
// Set up a fake repo with basic auth enabled
// Set up a fake repo with basic auth enabled
srv , err := repotest . NewTempServer ( "testdata/*.tgz*" )
srv , err := repotest . NewTempServer WithCleanup ( t , "testdata/*.tgz*" )
srv . Stop ( )
srv . Stop ( )
if err != nil {
if err != nil {
t . Fatal ( err )
t . Fatal ( err )
@ -229,7 +229,7 @@ func TestDownloadTo(t *testing.T) {
func TestDownloadTo_TLS ( t * testing . T ) {
func TestDownloadTo_TLS ( t * testing . T ) {
// Set up mock server w/ tls enabled
// Set up mock server w/ tls enabled
srv , err := repotest . NewTempServer ( "testdata/*.tgz*" )
srv , err := repotest . NewTempServer WithCleanup ( t , "testdata/*.tgz*" )
srv . Stop ( )
srv . Stop ( )
if err != nil {
if err != nil {
t . Fatal ( err )
t . Fatal ( err )
@ -285,7 +285,7 @@ func TestDownloadTo_VerifyLater(t *testing.T) {
dest := ensure . TempDir ( t )
dest := ensure . TempDir ( t )
// Set up a fake repo
// Set up a fake repo
srv , err := repotest . NewTempServer ( "testdata/*.tgz*" )
srv , err := repotest . NewTempServer WithCleanup ( t , "testdata/*.tgz*" )
if err != nil {
if err != nil {
t . Fatal ( err )
t . Fatal ( err )
}
}