Commit 5755e852 authored by Stan Hu's avatar Stan Hu

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

parent 806afcb4
...@@ -178,7 +178,10 @@ describe Geo::RepositorySyncService do ...@@ -178,7 +178,10 @@ describe Geo::RepositorySyncService do
subject.execute 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 expect(File.directory?(project.repository.path)).to be true
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