Skip to content
Browse files

Remove delay from tests

It's already included in the checker code
  • Loading branch information...
1 parent a94b59f commit 587df9b673fc6ef7dc93935f00f0fec8a2950782 coutud committed Feb 25, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 test/checker_test.rb
View
3 test/checker_test.rb
@@ -4,20 +4,17 @@
require 'digest/sha1'
class CheckerTest < MiniTest::Unit::TestCase
- ATD_SLEEP = 0.7
def setup
@checker = Merimee::Checker.new
end
def test_check_perfect_text
- sleep ATD_SLEEP # Make sure we sleep a bit, AtD returns 503 if requests are too close
errors = @checker.check("Perfect text")
assert_empty errors
end
def test_text_with_errors
erroneous_text = "Wrong text garanteed with errors"
- sleep ATD_SLEEP # Make sure we sleep a bit, AtD returns 503 if requests are too close
errors = @checker.check(erroneous_text)
refute_empty errors

0 comments on commit 587df9b

Please sign in to comment.
Something went wrong with that request. Please try again.