Skip to content
Snippets Groups Projects
Commit d6ba0a46 authored by HIGUCHI Daisuke (VDR dai)'s avatar HIGUCHI Daisuke (VDR dai)
Browse files

Disable the test expecting a timeout (Closes: #928505)

Thanks to Santiago Vila <sanvila@debian.org>
parent 419e9176
No related branches found
No related tags found
No related merge requests found
Description: disable the test expecting a timeout
Author: Santiago Vila <sanvila@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/928505
Forwarded: no
Last-Update: 2019-05-06
Index: ruby-pygments.rb/test/test_pygments.rb
===================================================================
--- ruby-pygments.rb.orig/test/test_pygments.rb
+++ ruby-pygments.rb/test/test_pygments.rb
@@ -38,12 +38,6 @@ class PygmentsHighlightTest < Test::Unit
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
......@@ -7,3 +7,4 @@
0007-no-relative-path-for-require-in-tests.patch
0008-Set-reasonable-upper-limit-to-RLIMIT_NOFILE.patch
0009-Remove-rubygem-for-ruby2.5.patch
0010-Disable-the-test-expecting-a-timeout.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment