From e6d6445cb0577dd4b7a2cfcd90fb0ff819b9f227 Mon Sep 17 00:00:00 2001 From: Jesse Zhang Date: Wed, 4 Apr 2012 14:01:08 -0700 Subject: [PATCH 1/2] [common][CI] Configurable Priority Queue Load - Use VCAP_TEST_PQUEUE_LOAD for the work load in unit test - Fall back to 100,000 Test plan: pass unit tests Change-Id: Ia14b5b01c0e6941714bcc0ca5175318e35f96fb6 --- spec/unit/priority_queue_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/priority_queue_spec.rb b/spec/unit/priority_queue_spec.rb index a0e103f..cffcbc4 100644 --- a/spec/unit/priority_queue_spec.rb +++ b/spec/unit/priority_queue_spec.rb @@ -38,7 +38,7 @@ describe 'high volume' do it 'should be able to accept a bunch of random values and return them in non-increasing order' do - n = 100_000 + n = (ENV['VCAP_TEST_PQUEUE_LOAD'] || 100_000).to_i n.times { val = rand ; @q.insert val,val } prev = @q.remove From 506e4682f51ae3270aa0f231cebd78b99974e0e9 Mon Sep 17 00:00:00 2001 From: Thomas Risberg Date: Wed, 18 Apr 2012 15:25:42 -0400 Subject: [PATCH 2/2] Moving require 'rubygems' to top for Ruby 1.8 this is a fix for https://cloudfoundry.atlassian.net/browse/CF-19 Change-Id: I8504a202cb87b1ae1c202c4d6017ef863809d2cf --- bin/fetch_gems | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fetch_gems b/bin/fetch_gems index 4197095..9ef49b3 100755 --- a/bin/fetch_gems +++ b/bin/fetch_gems @@ -1,9 +1,9 @@ #!/usr/bin/env ruby +require 'rubygems' require 'bundler' require 'fileutils' require 'logger' -require 'rubygems' # Provides functionality similar to `bundle package`, but without needing # to install any gems.