diff options
author | Andre Arko <andre@arko.net> | 2016-10-13 15:38:38 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2016-10-13 15:38:38 -0700 |
commit | 2b63fe92fe36f4726505b719f6c5fdb9e767b0ae (patch) | |
tree | 94bb78e7f903b2f2e2dff9f9cd9d6227e251a9c7 | |
parent | 54ab8af9c613e0d644a37255ee523c2ba333100a (diff) | |
download | bundler-2b63fe92fe36f4726505b719f6c5fdb9e767b0ae.tar.gz |
holy crap, what a subtle bug
THANK YOU RSPEC BISECT
also THANK YOU @SAMPHIPPEN
So it turns out that the realworld specs make real life network requests
to the real life rubygems.org. But we have some other “realworld” tests
that spin up a webrick server to recreate specific pathological server
behaviors. And those webrick servers might be able to answer requests
from later realworld tests that are expecting the actual rubygems.org,
but instead are getting our fake gem server because Artifice was never
stopped. :O
-rw-r--r-- | spec/realworld/dependency_api_spec.rb | 1 | ||||
-rw-r--r-- | spec/realworld/gemfile_source_header_spec.rb | 1 | ||||
-rw-r--r-- | spec/realworld/mirror_probe_spec.rb | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/spec/realworld/dependency_api_spec.rb b/spec/realworld/dependency_api_spec.rb index 9823cf8c76..ea02adfe4b 100644 --- a/spec/realworld/dependency_api_spec.rb +++ b/spec/realworld/dependency_api_spec.rb @@ -26,6 +26,7 @@ describe "gemcutter's dependency API", :realworld => true do end after do + Artifice.deactivate @t.kill @t.join end diff --git a/spec/realworld/gemfile_source_header_spec.rb b/spec/realworld/gemfile_source_header_spec.rb index 1c39fe97bb..95935f76f7 100644 --- a/spec/realworld/gemfile_source_header_spec.rb +++ b/spec/realworld/gemfile_source_header_spec.rb @@ -12,6 +12,7 @@ describe "fetching dependencies with a mirrored source", :realworld => true, :ru end after do + Artifice.deactivate @t.kill @t.join end diff --git a/spec/realworld/mirror_probe_spec.rb b/spec/realworld/mirror_probe_spec.rb index bb2be7f232..0fb93b8ab1 100644 --- a/spec/realworld/mirror_probe_spec.rb +++ b/spec/realworld/mirror_probe_spec.rb @@ -15,6 +15,7 @@ describe "fetching dependencies with a not available mirror", :realworld => true end after do + Artifice.deactivate @server_thread.kill @server_thread.join end |