minor tweak to integrations specs

This commit is contained in:
2011-02-01 10:42:41 +00:00
parent a88d3b3284
commit 0dda4399cb
3 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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|