summaryrefslogtreecommitdiff
path: root/spec/features/projects
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-07-19 15:32:56 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-08-07 14:31:45 +0200
commitaae947cb1c1252a642e0464c61132ec2e965eb80 (patch)
tree6ea056b09a118f5be2aa4cbfe60abd9879472f79 /spec/features/projects
parent7c5757ad9a416c9947bb0e9fae9065af47da8a0d (diff)
downloadgitlab-ce-aae947cb1c1252a642e0464c61132ec2e965eb80.tar.gz
Fixes race condition in project uploads
Originally picked as: 3fc0dbcbebcd470fe14f8b5fb7ad55dc3912402e. But given the internals changed, this was changed now. The changelog was removed too.
Diffstat (limited to 'spec/features/projects')
-rw-r--r--spec/features/projects/import_export/import_file_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/features/projects/import_export/import_file_spec.rb b/spec/features/projects/import_export/import_file_spec.rb
index c0cfb9eafe2..9b4235d9186 100644
--- a/spec/features/projects/import_export/import_file_spec.rb
+++ b/spec/features/projects/import_export/import_file_spec.rb
@@ -31,6 +31,7 @@ feature 'Import/Export - project import integration test', js: true do
expect(page).to have_content('GitLab project export')
expect(URI.parse(current_url).query).to eq("namespace_id=#{namespace.id}&path=test-project-path")
+ expect(Gitlab::ImportExport).to receive(:import_upload_path).with(filename: /\A[0-9a-f]{32}_test_project_export\.tar\.gz\z/).and_call_original
attach_file('file', file)