[DRE-commits] [ruby-pygments.rb] 01/03: change fragile test
Antonio Terceiro
terceiro at moszumanska.debian.org
Wed Feb 4 21:46:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-pygments.rb.
commit ad590d0a84d58d847a6568ae872fa092dfd22f3d
Author: Antonio Terceiro <terceiro at debian.org>
Date: Wed Feb 4 18:53:26 2015 -0200
change fragile test
---
debian/patches/0007-Update-test-result.patch | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/debian/patches/0007-Update-test-result.patch b/debian/patches/0007-Update-test-result.patch
index 89b7619..5522e42 100644
--- a/debian/patches/0007-Update-test-result.patch
+++ b/debian/patches/0007-Update-test-result.patch
@@ -1,18 +1,15 @@
-Description: Update test result
-Subject: Update test result
- Using old test result.
+Description: make test less fragile
- Already reported upstream https://github.com/tmm1/pygments.rb/issues/118
-Author: Per Andersson <avtobiff at gmail.com>
+Author: Antonio Terceiro <terceiro at debian.org>
---
--- a/test/test_pygments.rb
+++ b/test/test_pygments.rb
-@@ -32,7 +32,7 @@
+@@ -32,7 +32,7 @@ class PygmentsHighlightTest < Test::Unit
def test_highlight_works_with_larger_files
code = P.highlight(REDIS_CODE)
assert_match 'used_memory_peak_human', code
- assert_equal 455203, code.bytesize.to_i
-+ assert_equal 454107, code.bytesize.to_i
++ assert code.bytesize.to_i > 400_000
end
def test_returns_nil_on_timeout
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-pygments.rb.git
More information about the Pkg-ruby-extras-commits
mailing list