summaryrefslogtreecommitdiff
path: root/spec/workers/repository_check/batch_worker_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/repository_check/batch_worker_spec.rb')
-rw-r--r--spec/workers/repository_check/batch_worker_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/repository_check/batch_worker_spec.rb b/spec/workers/repository_check/batch_worker_spec.rb
index ede271b2cdd..50b93fce2dc 100644
--- a/spec/workers/repository_check/batch_worker_spec.rb
+++ b/spec/workers/repository_check/batch_worker_spec.rb
@@ -51,7 +51,7 @@ describe RepositoryCheck::BatchWorker do
it 'does nothing when shard is unhealthy' do
shard_name = 'broken'
- create(:project, created_at: 1.week.ago, repository_storage: shard_name)
+ create(:project, :broken_storage, created_at: 1.week.ago)
expect(subject.perform(shard_name)).to eq(nil)
end