diff --git a/test/html/sax/test_parser.rb b/test/html/sax/test_parser.rb
index 420ba144339..5513e569646 100644
--- a/test/html/sax/test_parser.rb
+++ b/test/html/sax/test_parser.rb
@@ -29,9 +29,9 @@ def test_parse_file
# Take a look at the comment in test_parse_document to know
# a possible reason to this difference.
if Nokogiri.uses_libxml?
- assert_equal 1111, @parser.document.end_elements.length
+ assert_equal 1112, @parser.document.end_elements.length
else
- assert_equal 1120, @parser.document.end_elements.length
+ assert_equal 1121, @parser.document.end_elements.length
end
end