Commit 86661a3a authored by Stan Hu's avatar Stan Hu 🔴

Use build instead of create in importer spec

parent 917a112e
Pipeline #14950126 passed with stages
in 56 minutes and 13 seconds
......@@ -135,7 +135,7 @@ describe Gitlab::BareRepositoryImport::Importer, repository: true do
it 'moves an existing project to the correct path' do
# This is a quick way to get a valid repository instead of copying an existing one
project = create(:project, :repository)
project = build(:project, :repository)
original_commit_count = project.repository.commit_count
# We need to destroy the model but keep the repository so that the
# importer will attempt to load the repository
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment