Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
ruby-pygments.rb
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Ruby Team
ruby-pygments.rb
Commits
d6ba0a46
Commit
d6ba0a46
authored
6 years ago
by
HIGUCHI Daisuke (VDR dai)
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/patches/0010-Disable-the-test-expecting-a-timeout.patch
+24
-0
24 additions, 0 deletions
...n/patches/0010-Disable-the-test-expecting-a-timeout.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
25 additions
and
0 deletions
debian/patches/0010-Disable-the-test-expecting-a-timeout.patch
0 → 100644
+
24
−
0
View file @
d6ba0a46
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
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
d6ba0a46
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment