File: 0010-Disable-the-test-expecting-a-timeout.patch

package info (click to toggle)
ruby-pygments.rb 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,008 kB
  • sloc: ansic: 1,869; ruby: 612; python: 518; makefile: 10; sh: 4
file content (29 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
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
From: Santiago Vila <sanvila@debian.org>
Date: Sun, 5 Apr 2020 10:17:56 -0300
Subject: disable the test expecting a timeout

Origin: vendor
Bug-Debian: https://bugs.debian.org/928505
Forwarded: no
Last-Update: 2019-05-06
---
 test/test_pygments.rb | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/test/test_pygments.rb b/test/test_pygments.rb
index 4dcdbff..ee659c6 100644
--- a/test/test_pygments.rb
+++ b/test/test_pygments.rb
@@ -38,12 +38,6 @@ class PygmentsHighlightTest < Test::Unit::TestCase
     assert_equal 458511, code.bytesize.to_i
   end
 
-  def test_returns_nil_on_timeout
-    large_code = REDIS_CODE * 300
-    code = P.highlight(large_code) # a 30 mb highlight request will timeout
-    assert_equal nil, code
-  end
-
   def test_highlight_works_with_null_bytes
     code = P.highlight("\0hello", :lexer => 'rb')
     assert_match "hello", code