Commit 0a2afe49 authored by Valery Sizov's avatar Valery Sizov

Minor adjustment to spec Geo framework spec

The follow-up issue for https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56538
parent 1c62cdbb
......@@ -68,11 +68,12 @@ RSpec.shared_examples 'a Geo framework registry' do
describe '.fail_sync_timeouts' do
it 'marks started records as failed if they are expired' do
record1 = create(registry_class_factory, :started, last_synced_at: 9.hours.ago)
create(registry_class_factory, :started, last_synced_at: 1.hour.ago) # not yet expired
record2 = create(registry_class_factory, :started, last_synced_at: 1.hour.ago) # not yet expired
described_class.fail_sync_timeouts
expect(record1.reload.state).to eq described_class::STATE_VALUES[:failed]
expect(record2.reload.state).to eq described_class::STATE_VALUES[:started]
end
end
end
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