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