diff options
author | Andre Arko <andre@arko.net> | 2013-12-13 23:28:15 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-12-13 23:28:15 -0800 |
commit | 8709e99a201552b91b044167263c330cbfb9c3e1 (patch) | |
tree | d7e62960f68848e7241c4ea0f09f62cc654f0744 /spec/realworld | |
parent | 45d977d88c5cd1cb4cc431492345118ba1a29043 (diff) | |
download | bundler-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
Diffstat (limited to 'spec/realworld')
-rw-r--r-- | spec/realworld/parallel_install_spec.rb | 4 | ||||
-rw-r--r-- | spec/realworld/parallel_update_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/realworld/parallel_install_spec.rb b/spec/realworld/parallel_install_spec.rb index d70eb321..98209baf 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 3f7f1033..7b4bb585 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/) |