Skip to content

Commit 9d0fa14

Browse files
authored
Ruby: Increase timeout for performance tests to 2 seconds
Signed-off-by: Marco Roth <marco.roth@intergga.ch>
1 parent 4b4c94c commit 9d0fa14

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/parser/performance_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Parser
66
class PerformanceTest < Minitest::Spec
77
test "many unclosed tags parses within timeout" do
88
source = "<div>" * 100_000
9-
result = Herb.parse(source, timeout: 1)
9+
result = Herb.parse(source, timeout: 2)
1010

1111
assert_instance_of Herb::AST::DocumentNode, result.value
1212

@@ -16,7 +16,7 @@ class PerformanceTest < Minitest::Spec
1616

1717
test "many matched tags parses within timeout" do
1818
source = "<div>x</div>" * 100_000
19-
result = Herb.parse(source, timeout: 1)
19+
result = Herb.parse(source, timeout: 2)
2020

2121
assert_instance_of Herb::AST::DocumentNode, result.value
2222

@@ -27,7 +27,7 @@ class PerformanceTest < Minitest::Spec
2727
test "many unclosed tags of different names parses within timeout" do
2828
tags = ["div", "span", "p", "a", "section", "article", "header", "footer", "main", "nav"].cycle.take(100_000)
2929
source = tags.map { |t| "<#{t}>" }.join
30-
result = Herb.parse(source, timeout: 1)
30+
result = Herb.parse(source, timeout: 2)
3131

3232
assert_instance_of Herb::AST::DocumentNode, result.value
3333

0 commit comments

Comments
 (0)