Commit cbf86ddd authored by Nick Thomas's avatar Nick Thomas

Merge branch 'sh-fix-failed-geo-sync-spec' into 'master'

Fix spec to ensure BaseSyncService doesn't leave deleted directory around

See merge request gitlab-org/gitlab-ee!3509
parents e806df81 5755e852
......@@ -178,7 +178,10 @@ describe Geo::RepositorySyncService do
subject.execute
expect(File.directory?("#{project.repository.path}+failed-geo-sync")).to be false
# gitlab-shell always appends .git to the end of the repository, so
# we're relying on the fact that projects can't contain + in the name
deleted_dir = File.join(project.repository.storage_path, project.path) + "+failed-geo-sync.git"
expect(File.directory?(deleted_dir)).to be false
expect(File.directory?(project.repository.path)).to be true
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