mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Ensure that all migration requests are cancellable (#12669)
* Ensure that all migration requests are cancellable Signed-off-by: Andrew Thornton <art27@cantab.net> * Use WithContext as RequestWithContext is go 1.14 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		| @@ -6,6 +6,7 @@ | ||||
| package migrations | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| 	"testing" | ||||
| 	"time" | ||||
|  | ||||
| @@ -26,7 +27,7 @@ func TestGiteaUploadRepo(t *testing.T) { | ||||
| 	user := models.AssertExistsAndLoadBean(t, &models.User{ID: 1}).(*models.User) | ||||
|  | ||||
| 	var ( | ||||
| 		downloader = NewGithubDownloaderV3("", "", "", "go-xorm", "builder") | ||||
| 		downloader = NewGithubDownloaderV3(context.Background(), "", "", "", "go-xorm", "builder") | ||||
| 		repoName   = "builder-" + time.Now().Format("2006-01-02-15-04-05") | ||||
| 		uploader   = NewGiteaLocalUploader(graceful.GetManager().HammerContext(), user, user.Name, repoName) | ||||
| 	) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user