summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-12-13 23:28:15 -0800
committerAndre Arko <andre@arko.net>2013-12-13 23:28:15 -0800
commit8709e99a201552b91b044167263c330cbfb9c3e1 (patch)
treed7e62960f68848e7241c4ea0f09f62cc654f0744
parent45d977d88c5cd1cb4cc431492345118ba1a29043 (diff)
downloadbundler-8709e99a201552b91b044167263c330cbfb9c3e1.tar.gz
change the parallel spec to check for two workers
with four workers, it's possible that one of the workers will never actually get a chance to install a gem, and then the test will fail
-rw-r--r--spec/realworld/parallel_install_spec.rb4
-rw-r--r--spec/realworld/parallel_update_spec.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/realworld/parallel_install_spec.rb b/spec/realworld/parallel_install_spec.rb
index d70eb321c0..98209baf68 100644
--- a/spec/realworld/parallel_install_spec.rb
+++ b/spec/realworld/parallel_install_spec.rb
@@ -8,8 +8,8 @@ describe "installing dependencies parallely", :realworld => true do
gem 'faker', '~> 1.1.2'
G
- bundle :install, :jobs => 4, :env => {"DEBUG" => "1"}
- (0..3).each {|i| expect(out).to include("#{i}: ") }
+ bundle :install, :jobs => 2, :env => {"DEBUG" => "1"}
+ (0..1).each {|i| expect(out).to include("#{i}: ") }
bundle "show activesupport"
expect(out).to match(/activesupport/)
diff --git a/spec/realworld/parallel_update_spec.rb b/spec/realworld/parallel_update_spec.rb
index 3f7f1033d0..7b4bb58577 100644
--- a/spec/realworld/parallel_update_spec.rb
+++ b/spec/realworld/parallel_update_spec.rb
@@ -16,8 +16,8 @@ describe "updating dependencies parallely", :realworld => true do
gem 'faker', '~> 1.1.2'
G
- bundle :update, :jobs => 4, :env => {"DEBUG" => "1"}
- (0..3).each {|i| expect(out).to include("#{i}: ") }
+ bundle :update, :jobs => 2, :env => {"DEBUG" => "1"}
+ (0..1).each {|i| expect(out).to include("#{i}: ") }
bundle "show activesupport"
expect(out).to match(/activesupport-3\.2\.13/)