Commit 22dfa9b5 authored by Stan Hu's avatar Stan Hu

Fix order-dependent Geo spec failure

Currently `before_all` doesn't rollback data properly between examples
when the data is in the Geo tracking database. We use `before` instead
of `before_all` to avoid polluting data data across examples.

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/230333
parent c00c10ed
......@@ -23,7 +23,7 @@ RSpec.shared_examples 'a replicator' do
context 'on a secondary node' do
let_it_be(:registry_factory) { registry_factory_name(described_class.registry_class) }
before_all do
before do
create(registry_factory, :synced)
create(registry_factory)
create(registry_factory, :failed)
......
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