mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +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" | ||||
| 	"os" | ||||
| 	"testing" | ||||
| 	"time" | ||||
| @@ -64,7 +65,7 @@ func assertLabelEqual(t *testing.T, name, color, description string, label *base | ||||
|  | ||||
| func TestGitHubDownloadRepo(t *testing.T) { | ||||
| 	GithubLimitRateRemaining = 3 //Wait at 3 remaining since we could have 3 CI in // | ||||
| 	downloader := NewGithubDownloaderV3("", "", os.Getenv("GITHUB_READ_TOKEN"), "go-gitea", "test_repo") | ||||
| 	downloader := NewGithubDownloaderV3(context.Background(), "", "", os.Getenv("GITHUB_READ_TOKEN"), "go-gitea", "test_repo") | ||||
| 	err := downloader.RefreshRate() | ||||
| 	assert.NoError(t, err) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user