Try to get correct exit code for unit tests.

This commit is contained in:
Martin Edenhofer 2013-03-07 08:25:10 +01:00
parent a9f032ca0a
commit b5c07f089c
2 changed files with 24 additions and 24 deletions

View file

@ -13,30 +13,6 @@ class SchedulerCreate < ActiveRecord::Migration
t.column :created_by_id, :integer, :null => false t.column :created_by_id, :integer, :null => false
t.timestamps t.timestamps
end end
Scheduler.create(
:name => 'Check Channels',
:method => 'Channel.fetch',
:period => 30,
:active => true,
:updated_by_id => 1,
:created_by_id => 1,
)
Scheduler.create(
:name => 'Import OTRS diff load',
:method => 'Import::OTRS.diff_loop',
:period => 60 * 10,
:active => true,
:updated_by_id => 1,
:created_by_id => 1,
)
Scheduler.create(
:name => 'Generate Session data',
:method => 'Session.jobs',
:period => 60,
:active => true,
:updated_by_id => 1,
:created_by_id => 1,
)
add_index :schedulers, [:name], :unique => true add_index :schedulers, [:name], :unique => true
end end

View file

@ -1,5 +1,29 @@
class UpdateSla < ActiveRecord::Migration class UpdateSla < ActiveRecord::Migration
def up def up
Scheduler.create(
:name => 'Check Channels',
:method => 'Channel.fetch',
:period => 30,
:active => true,
:updated_by_id => 1,
:created_by_id => 1,
)
Scheduler.create(
:name => 'Import OTRS diff load',
:method => 'Import::OTRS.diff_loop',
:period => 60 * 10,
:active => true,
:updated_by_id => 1,
:created_by_id => 1,
)
Scheduler.create(
:name => 'Generate Session data',
:method => 'Session.jobs',
:period => 60,
:active => true,
:updated_by_id => 1,
:created_by_id => 1,
)
add_column :slas, :first_response_time, :integer, :null => true add_column :slas, :first_response_time, :integer, :null => true
add_column :slas, :update_time, :integer, :null => true add_column :slas, :update_time, :integer, :null => true
add_column :slas, :close_time, :integer, :null => true add_column :slas, :close_time, :integer, :null => true