mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 14:35:40 +00:00
fix(ui): /settings/lfs/find 500 error (take 2)
Make the test actually fails on error and not just report failure on the output and succeed.
This commit is contained in:
parent
94d7523f83
commit
4036448c02
|
@ -100,6 +100,6 @@ func TestLFSRender(t *testing.T) {
|
|||
req = NewRequest(t, "GET", lfsFindPath)
|
||||
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||
doc := NewHTMLParser(t, resp.Body).doc
|
||||
assert.Contains(t, doc.Text(), "README.md")
|
||||
assert.Equal(t, 1, doc.Find(`.sha.label[href="/user2/lfs/commit/73cf03db6ece34e12bf91e8853dc58f678f2f82d"]`).Length(), "could not find link to commit")
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue