add retry monkey patch for mechanize

This commit is contained in:
Albert Yi
2018-05-09 16:45:03 -07:00
parent e23814be92
commit 5bca31bad1
3 changed files with 57 additions and 14 deletions

View File

@@ -2,13 +2,6 @@ require 'test_helper'
module Downloads
class PixivTest < ActiveSupport::TestCase
def teardown
super
# need to reset the connection
Sources::Strategies::Pixiv.new("http://www.pixiv.net").agent.shutdown
end
context "An ugoira site for pixiv" do
setup do
@download = Downloads::File.new("http://www.pixiv.net/member_illust.php?mode=medium&illust_id=62247364")

View File

@@ -8,13 +8,6 @@ module Sources
@site
end
def teardown
super
# need to reset the connection
Sources::Strategies::Pixiv.new("http://www.pixiv.net").agent.shutdown
end
context "in all cases" do
context "A touch page" do
setup do