mirror of
https://github.com/jimeh/amqp-failover.git
synced 2026-02-19 10:56:44 +00:00
minor tweak to integrations specs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user