From c3cc4d82ec2be23a0769fd7cbb57e4c6e49b83d1 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Mon, 14 Oct 2024 20:15:40 +0200 Subject: [PATCH] Use assert.Empty --- tests/integration/milestone_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/milestone_test.go b/tests/integration/milestone_test.go index 8e07a0232b..6bcf7d7128 100644 --- a/tests/integration/milestone_test.go +++ b/tests/integration/milestone_test.go @@ -38,5 +38,5 @@ func TestMilestonesCount(t *testing.T) { closedCount := htmlDoc.doc.Find("a[data-test-name='closed-issue-count']").Text() assert.Contains(t, closedCount, "1\u00a0Closed") - assert.Len(t, htmlDoc.doc.Find("a[data-test-name='closed-issue-count']").Nodes, 0) + assert.Empty(t, htmlDoc.doc.Find("a[data-test-name='closed-issue-count']").Nodes) }