From a2dc785d23d2bcb853b8dd46867617d692fa24e0 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 28 May 2026 14:31:39 +0800 Subject: [PATCH] fast-path --- tests/integration/html_helper.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/html_helper.go b/tests/integration/html_helper.go index 2f52f10875c..cefe5592c4a 100644 --- a/tests/integration/html_helper.go +++ b/tests/integration/html_helper.go @@ -53,6 +53,9 @@ func AssertHTMLElement[T int | bool](t testing.TB, doc *HTMLDoc, selector string func assertHTMLEq(t testing.TB, expected, actual string) { t.Helper() + if expected == actual { + return + } exp, err := html.Parse(strings.NewReader(expected)) if !assert.NoError(t, err) { return