Disable transactions on spec for Geo::RepositorySyncWorker

parent f3a5b20d
require 'spec_helper' require 'spec_helper'
describe Geo::RepositorySyncWorker, :geo do # Disable transactions via :truncate method because a foreign table
# can't see changes inside a transaction of a different connection.
describe Geo::RepositorySyncWorker, :geo, :truncate do
include ::EE::GeoHelpers include ::EE::GeoHelpers
set(:primary) { create(:geo_node, :primary, host: 'primary-geo-node') } let(:secondary) { create(:geo_node) }
set(:secondary) { create(:geo_node) } let(:synced_group) { create(:group) }
set(:synced_group) { create(:group) } let!(:project_in_synced_group) { create(:project, group: synced_group) }
set(:project_in_synced_group) { create(:project, group: synced_group) } let!(:unsynced_project) { create(:project) }
set(:unsynced_project) { create(:project) }
subject { described_class.new } subject { described_class.new }
......
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