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:
Earl Warren 2024-04-25 23:00:11 +02:00
parent 94d7523f83
commit 4036448c02
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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")
})
}