Commit 5af239b9 authored by Tiago Botelho's avatar Tiago Botelho

Fix ProjectImportState factory conflicts

parent 86434ef5
...@@ -11,7 +11,6 @@ FactoryBot.define do ...@@ -11,7 +11,6 @@ FactoryBot.define do
association :project, factory: [:project, :repository] association :project, factory: [:project, :repository]
end end
<<<<<<< HEAD
trait :mirror do trait :mirror do
transient do transient do
mirror true mirror true
...@@ -26,23 +25,17 @@ FactoryBot.define do ...@@ -26,23 +25,17 @@ FactoryBot.define do
end end
end end
=======
>>>>>>> upstream/master
trait :none do trait :none do
status :none status :none
end end
trait :scheduled do trait :scheduled do
status :scheduled status :scheduled
<<<<<<< HEAD
last_update_scheduled_at { Time.now } last_update_scheduled_at { Time.now }
=======
>>>>>>> upstream/master
end end
trait :started do trait :started do
status :started status :started
<<<<<<< HEAD
last_update_started_at { Time.now } last_update_started_at { Time.now }
end end
...@@ -52,17 +45,10 @@ FactoryBot.define do ...@@ -52,17 +45,10 @@ FactoryBot.define do
status :finished status :finished
last_update_at timestamp last_update_at timestamp
last_successful_update_at timestamp last_successful_update_at timestamp
=======
end
trait :finished do
status :finished
>>>>>>> upstream/master
end end
trait :failed do trait :failed do
status :failed status :failed
<<<<<<< HEAD
last_update_at { Time.now } last_update_at { Time.now }
end end
...@@ -70,8 +56,6 @@ FactoryBot.define do ...@@ -70,8 +56,6 @@ FactoryBot.define do
status :failed status :failed
retry_count { Gitlab::Mirror::MAX_RETRY + 1 } retry_count { Gitlab::Mirror::MAX_RETRY + 1 }
last_update_at { Time.now - 1.minute } last_update_at { Time.now - 1.minute }
=======
>>>>>>> upstream/master
end end
after(:create) do |import_state, evaluator| after(:create) do |import_state, evaluator|
......
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