Fix typo in gitea downloader test and add missing codebase in ToGitServiceType
(#33146)
This commit is contained in:
parent
9c00e065a1
commit
e177239529
3 changed files with 13 additions and 3 deletions
|
@ -30,10 +30,10 @@ func TestGiteaDownloadRepo(t *testing.T) {
|
|||
|
||||
downloader, err := NewGiteaDownloader(context.Background(), "https://gitea.com", "gitea/test_repo", "", "", giteaToken)
|
||||
if downloader == nil {
|
||||
t.Fatal("NewGitlabDownloader is nil")
|
||||
t.Fatal("NewGiteaDownloader is nil")
|
||||
}
|
||||
if !assert.NoError(t, err) {
|
||||
t.Fatal("NewGitlabDownloader error occur")
|
||||
t.Fatal("NewGiteaDownloader error occur")
|
||||
}
|
||||
|
||||
repo, err := downloader.GetRepoInfo()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue