diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-09-08 23:10:53 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-09-15 00:17:23 +0300 |
commit | ee4f73916f586112e6479d80b3769e174414eb7e (patch) | |
tree | 260857524c956e31bbb6b6df2a7e7bdbddb46e45 /spec/migrations | |
parent | dbf924c57dc026747dae00141c1da67fbf856c80 (diff) |
Extract helper for queuing background jobs
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/delete_conflicting_redirect_routes_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/migrations/delete_conflicting_redirect_routes_spec.rb b/spec/migrations/delete_conflicting_redirect_routes_spec.rb index 5d277028b96..b79d04c1a21 100644 --- a/spec/migrations/delete_conflicting_redirect_routes_spec.rb +++ b/spec/migrations/delete_conflicting_redirect_routes_spec.rb @@ -6,8 +6,8 @@ describe DeleteConflictingRedirectRoutes, :migration, :sidekiq do let!(:routes) { table(:routes) } before do - stub_const("#{described_class.name}::BATCH_SIZE", 2) - stub_const("#{described_class.name}::JOB_BUFFER_SIZE", 2) + stub_const("Gitlab::Database::MigrationHelpers::BACKGROUND_MIGRATION_BATCH_SIZE", 2) + stub_const("Gitlab::Database::MigrationHelpers::BACKGROUND_MIGRATION_JOB_BUFFER_SIZE", 2) routes.create!(id: 1, source_id: 1, source_type: 'Namespace', path: 'foo1') routes.create!(id: 2, source_id: 2, source_type: 'Namespace', path: 'foo2') |