From 4036448c0251860fbe0d42f58c5757822b4aba1e Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Thu, 25 Apr 2024 23:00:11 +0200 Subject: [PATCH] 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. --- tests/integration/lfs_view_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/lfs_view_test.go b/tests/integration/lfs_view_test.go index b50c075ccf..9dfcb3e698 100644 --- a/tests/integration/lfs_view_test.go +++ b/tests/integration/lfs_view_test.go @@ -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") }) }