diff options
author | Rémy Coutable <remy@rymai.me> | 2016-10-24 18:13:13 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-10-26 12:44:04 +0200 |
commit | 78428cfba56c19ccf37f2b330ad678f493d9f9ce (patch) | |
tree | bfb2da30de72bc7344cc94813fcf1a0a9ccde48b | |
parent | 70074733bb5f8dd09d3389b8873da22c39d52b50 (diff) | |
download | gitlab-ce-rc/sidekiq-test-mode.tar.gz |
Try to use the default Sidekiq test moderc/sidekiq-test-mode
The goal is to see if the "inline" mode slows down the test suite
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | spec/spec_helper.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 06d52f0f735..d0e8f5370b3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -6,7 +6,7 @@ ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'shoulda/matchers' -require 'sidekiq/testing/inline' +require 'sidekiq/testing' require 'rspec/retry' if ENV['CI'] @@ -42,6 +42,12 @@ RSpec.configure do |config| config.before(:suite) do TestEnv.init + puts "Sidekiq::Testing.__test_mode: #{Sidekiq::Testing.__test_mode}" + end + + config.after(:suite) do + puts "Sidekiq::Testing.__test_mode: #{Sidekiq::Testing.__test_mode}" + puts "# of jobs after test suite: #{Sidekiq::Worker.jobs.size}" end config.around(:each, :caching) do |example| |