Skip to content
Snippets Groups Projects
Commit 9a439fa5 authored by Daniel Davison's avatar Daniel Davison
Browse files

Merge branch 'qa-ml-fix-push-file-size-test' into 'master'

[QA] Fix 2 of 3 problems with the push file size tests

See merge request gitlab-org/gitlab-ce!26741
parents 65f2ed1d 903a9792
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -40,8 +40,8 @@ module QA
set_file_size_limit(1)
expect(page).to have_content("Application settings saved successfully")
 
push = push_new_file('oversize_file_2.bin', wait_for_push: false)
expect(push.output).to have_content 'remote: fatal: pack exceeds maximum allowed size'
expect { push_new_file('oversize_file_2.bin', wait_for_push: false) }
.to raise_error(QA::Git::Repository::RepositoryCommandError, /remote: fatal: pack exceeds maximum allowed size/)
end
 
def set_file_size_limit(limit)
Loading
Loading
@@ -65,6 +65,7 @@ module QA
p.file_content = SecureRandom.random_bytes(2000000)
p.commit_message = 'Adding a new file'
p.wait_for_push = wait_for_push
p.new_branch = false
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment