diff --git a/spec/integration/basic_spec.rb b/spec/integration/basic_spec.rb index ea0fbff..1a79c43 100644 --- a/spec/integration/basic_spec.rb +++ b/spec/integration/basic_spec.rb @@ -9,7 +9,7 @@ require 'server_helper' describe "Basic AMQP connection with FailoverClient loaded" do - after(:all) do + after(:each) do ServerHelper.clear_logs end diff --git a/spec/integration/failover_spec.rb b/spec/integration/failover_spec.rb index a2e11e4..595eeec 100644 --- a/spec/integration/failover_spec.rb +++ b/spec/integration/failover_spec.rb @@ -13,7 +13,7 @@ describe "Full Failover support of AMQP gem" do AMQP::Failover.logger = @flog end - after(:all) do + after(:each) do ServerHelper.clear_logs AMQP::Failover.logger = nil end diff --git a/spec/server_helper.rb b/spec/server_helper.rb index babb28d..153f059 100644 --- a/spec/server_helper.rb +++ b/spec/server_helper.rb @@ -60,7 +60,6 @@ module AmqpServer # customize log output def log(*args) - # puts "\n>>>>>> Process.pid / $PORT: " + Process.pid.inspect + " / #{$PORT}\n" args = {:method => args[0], :class => args[1].payload.class, :pid => Process.pid} filename = File.expand_path("server_helper-port#{$PORT}.log", File.dirname(__FILE__)) File.open(filename, 'a') do |f|