Fix spec for Geo::RepositorySyncService

parent 25a7f449
...@@ -130,8 +130,8 @@ describe Geo::RepositorySyncService, services: true do ...@@ -130,8 +130,8 @@ describe Geo::RepositorySyncService, services: true do
registry.reload registry.reload
expect(registry.last_repository_synced_at).to eq last_repository_synced_at expect(registry.last_repository_synced_at).to be_within(1.minute).of(last_repository_synced_at)
expect(registry.last_repository_successful_sync_at).to eq last_repository_synced_at expect(registry.last_repository_successful_sync_at).to be_within(1.minute).of(last_repository_synced_at)
end end
it 'does not update last_wiki_successful_sync_at' do it 'does not update last_wiki_successful_sync_at' do
...@@ -139,8 +139,8 @@ describe Geo::RepositorySyncService, services: true do ...@@ -139,8 +139,8 @@ describe Geo::RepositorySyncService, services: true do
registry.reload registry.reload
expect(registry.last_wiki_synced_at).to eq last_wiki_synced_at expect(registry.last_wiki_synced_at).to be_within(1.minute).of(last_wiki_synced_at)
expect(registry.last_wiki_successful_sync_at).to eq last_wiki_synced_at expect(registry.last_wiki_successful_sync_at).to be_within(1.minute).of(last_wiki_synced_at)
end end
end end
end end
...@@ -245,8 +245,8 @@ describe Geo::RepositorySyncService, services: true do ...@@ -245,8 +245,8 @@ describe Geo::RepositorySyncService, services: true do
registry.reload registry.reload
expect(registry.last_wiki_synced_at).to eq last_wiki_synced_at expect(registry.last_wiki_synced_at).to be_within(1.minute).of(last_wiki_synced_at)
expect(registry.last_wiki_successful_sync_at).to eq last_wiki_synced_at expect(registry.last_wiki_successful_sync_at).to be_within(1.minute).of(last_wiki_synced_at)
end end
it 'resets resync_repository' do it 'resets resync_repository' do
...@@ -311,8 +311,8 @@ describe Geo::RepositorySyncService, services: true do ...@@ -311,8 +311,8 @@ describe Geo::RepositorySyncService, services: true do
registry.reload registry.reload
expect(registry.last_repository_synced_at).to eq last_repository_synced_at expect(registry.last_repository_synced_at).to be_within(1.minute).of(last_repository_synced_at)
expect(registry.last_repository_successful_sync_at).to eq last_repository_synced_at expect(registry.last_repository_successful_sync_at).to be_within(1.minute).of(last_repository_synced_at)
end end
it 'resets resync_wiki' do it 'resets resync_wiki' do
......
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