fix pixiv agent shutdown
This commit is contained in:
@@ -6,7 +6,7 @@ module Downloads
|
||||
super
|
||||
|
||||
# need to reset the connection
|
||||
Sources::Strategies::Pixiv.new.agent.shutdown
|
||||
Sources::Strategies::Pixiv.new("http://www.pixiv.net").agent.shutdown
|
||||
end
|
||||
|
||||
context "An ugoira site for pixiv" do
|
||||
|
||||
@@ -5,10 +5,14 @@ module Sources
|
||||
def get_source(source)
|
||||
@site = Sources::Site.new(source)
|
||||
@site.get
|
||||
@site
|
||||
end
|
||||
|
||||
def teardown
|
||||
super
|
||||
|
||||
# need to reset the connection
|
||||
@site.strategy.agent.shutdown
|
||||
@site
|
||||
Sources::Strategies::Pixiv.new("http://www.pixiv.net").agent.shutdown
|
||||
end
|
||||
|
||||
context "in all cases" do
|
||||
|
||||
Reference in New Issue
Block a user