mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-13 11:42:23 -05:00
Update tests/integration/repo_tag_test.go
Typo
This commit is contained in:
parent
f65fba1869
commit
f2b7cfa7f7
1 changed files with 3 additions and 3 deletions
|
@ -140,7 +140,7 @@ func TestSyncRepoTags(t *testing.T) {
|
|||
|
||||
doGitClone(dstPath, u)(t)
|
||||
|
||||
_, _, err := git.NewCommand(git.DefaultContext, "tag", "v2", "-m", "this is an annoted tag").RunStdString(&git.RunOpts{Dir: dstPath})
|
||||
_, _, err := git.NewCommand(git.DefaultContext, "tag", "v2", "-m", "this is an annotated tag").RunStdString(&git.RunOpts{Dir: dstPath})
|
||||
require.NoError(t, err)
|
||||
|
||||
_, _, err = git.NewCommand(git.DefaultContext, "push", "--tags").RunStdString(&git.RunOpts{Dir: dstPath})
|
||||
|
@ -152,10 +152,10 @@ func TestSyncRepoTags(t *testing.T) {
|
|||
resp := MakeRequest(t, req, http.StatusOK)
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
tagsTab := htmlDoc.Find(".release-list-title")
|
||||
assert.Contains(t, tagsTab.Text(), "this is an annoted tag")
|
||||
assert.Contains(t, tagsTab.Text(), "this is an annotated tag")
|
||||
}
|
||||
|
||||
// Make sure `SyncRepoTags` doesn't modify annoted tags.
|
||||
// Make sure `SyncRepoTags` doesn't modify annotated tags.
|
||||
testTag(t)
|
||||
require.NoError(t, repo_module.SyncRepoTags(git.DefaultContext, repo.ID))
|
||||
testTag(t)
|
||||
|
|
Loading…
Reference in a new issue