Skip to content

Commit

Permalink
Remove timeout test since it's been unused for ages
Browse files Browse the repository at this point in the history
  • Loading branch information
scotchi committed Oct 10, 2012
1 parent 10bb803 commit dc516a9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Ruby/test/test_directededge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -403,24 +403,4 @@ def test_blacklisted
assert(!customer.blacklisted.include?(first))
assert(customer.recommended(:tags => 'product').include?(first))
end

def test_timeout
return unless ENV['TEST_TIMEOUT']
timeout = 5
database = DirectedEdge::Database.new('dummy', 'dummy', 'http',
:host => 'localhost:4567', :timeout => timeout)
start = Time.now
timed_out = false

begin
item = DirectedEdge::Item.new(database, 'dummy')
item.tags
rescue RestClient::RequestTimeout
timed_out = true
assert(Time.now - start < timeout + 1)
rescue
end

assert(timed_out)
end
end

0 comments on commit dc516a9

Please sign in to comment.