Skip to content

Commit

Permalink
Less noise in integration test logs
Browse files Browse the repository at this point in the history
1. Removed commands usage warnings
2. Silence Redis on start (set to warnings only)
  • Loading branch information
andrzejkrzywda committed Nov 28, 2023
1 parent 614192e commit 220bea6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rails_application/test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ def run_command(command)
end

class InMemoryRESIntegrationTestCase < ActionDispatch::IntegrationTest

def setup
super
Sidekiq.logger.level = Logger::WARN
end

def before_setup
result = super
@previous_event_store = Rails.configuration.event_store
Expand Down Expand Up @@ -110,7 +116,6 @@ def add_product_to_basket(order_id, product_id)
end

def run_command(command)
puts "Command: #{command.class} used in integrations test."
Rails.configuration.command_bus.call(command)
end
end

0 comments on commit 220bea6

Please sign in to comment.