Module: Tochtli::Test::Integration
Instance Method Summary
collapse
append_features, included
Instance Method Details
#after_teardown ⇒ Object
27
28
29
30
31
32
33
34
|
# File 'lib/tochtli/test/integration.rb', line 27
def after_teardown
begin
@controller_manager.stop if @controller_manager
rescue Timeout::Error
warn "Unable to stop controller manager: #{$!} [#{$!.class}]"
end
super
end
|
#before_setup ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/tochtli/test/integration.rb', line 12
def before_setup
super
@logger = Tochtli.logger
@logger.level = Logger::DEBUG
@client = Tochtli::RabbitClient.new(nil, @logger)
@connection = @client.rabbit_connection
@controller_manager = Tochtli::ControllerManager.instance
@controller_manager.setup(connection: @connection, logger: @logger)
@controller_manager.start(:all)
@mutex = Mutex.new
@cv = ConditionVariable.new
end
|