mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 19:47:07 +09:00
fix: correct repo/attatchment absolute url and release layout (#39178)
This commit is contained in:
1 parent
fc9800b383
commit
4875bb3b2b
21 files changed
+72
-80
No files matched your search
@@ -52,7 +52,7 @@ func TestAPIGetCommentAttachment(t *testing.T) {
|
||||
|
||||
apiAttachment := DecodeJSON(t, resp, &api.Attachment{})
|
||||
|
||||
expect := convert.ToAPIAttachment(repo, attachment)
|
||||
expect := convert.ToAPIAttachment(t.Context(), repo, attachment)
|
||||
assert.Equal(t, expect.ID, apiAttachment.ID)
|
||||
assert.Equal(t, expect.Name, apiAttachment.Name)
|
||||
assert.Equal(t, expect.UUID, apiAttachment.UUID)
|
||||
|
||||
Reference in new issue
Block a user