Commit 29120785 authored by Igor Drozdov's avatar Igor Drozdov

Speed up ee/spec/models/geo_node_status_spec.rb

Move project creations in before-all using let-it-be
parent 89d0135c
...@@ -9,11 +9,11 @@ RSpec.describe GeoNodeStatus, :geo do ...@@ -9,11 +9,11 @@ RSpec.describe GeoNodeStatus, :geo do
let!(:primary) { create(:geo_node, :primary) } let!(:primary) { create(:geo_node, :primary) }
let!(:secondary) { create(:geo_node) } let!(:secondary) { create(:geo_node) }
let!(:group) { create(:group) } let_it_be(:group) { create(:group) }
let!(:project_1) { create(:project, group: group) } let_it_be(:project_1) { create(:project, group: group) }
let!(:project_2) { create(:project, group: group) } let_it_be(:project_2) { create(:project, group: group) }
let!(:project_3) { create(:project) } let_it_be(:project_3) { create(:project) }
let!(:project_4) { create(:project) } let_it_be(:project_4) { create(:project) }
subject(:status) { described_class.current_node_status } subject(:status) { described_class.current_node_status }
......
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