1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
From: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Date: Thu, 30 Nov 2023 00:19:53 +0100
Subject: disable the test expecting a timeout
Based on previous patch from Santiago Vila <sanvila@debian.org>.
Author: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Origin: vendor
Bug-Debian: https://bugs.debian.org/928505
Forwarded: no
Last-Update: 2022-01-06
---
test/test_pygments.rb | 7 -------
1 file changed, 7 deletions(-)
diff --git a/test/test_pygments.rb b/test/test_pygments.rb
index f93bc67..b797ed2 100644
--- a/test/test_pygments.rb
+++ b/test/test_pygments.rb
@@ -25,13 +25,6 @@ class PygmentsHighlightTest < Test::Unit::TestCase
assert_match 'Main loop, waiting for inputs on stdin', code
end
- def test_raises_exception_on_timeout
- assert_raise MentosError.new('Timeout on a mentos highlight call') do
- # Assume highlighting a large file will take more than 1 millisecond
- P.highlight(TEST_CODE * 10, timeout: 0.001)
- end
- end
-
def test_highlight_works_with_null_bytes
code = P.highlight("\0hello", lexer: 'rb')
assert_match 'hello', code
|