summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMesut Güneş <gunesmes@gmail.com>2019-01-29 00:05:32 +0300
committerMark Lapierre <mlapierre@gitlab.com>2019-01-30 17:14:38 -0500
commit3d3e6b74c3d00958a2698cb20313da29d9e5c4d4 (patch)
tree28f36ef9bdf80d197391d1137375934141b87ff4
parentc5a90bb3587511497d799106518d8f60f6117173 (diff)
downloadgitlab-ce-mesut-310-push-check-size-limit-enabled-qa.tar.gz
file content and comment section updatedmesut-310-push-check-size-limit-enabled-qa
-rw-r--r--qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb b/qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb
index 853cae3104d..5af8e24888a 100644
--- a/qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb
+++ b/qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb
@@ -9,6 +9,7 @@ module QA
p.file_content = '# This is a test project'
p.commit_message = 'Add README.md'
end
+
@project = push.project
end
@@ -16,8 +17,10 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
- # need to create a new content otherwise it doesn't give error for the exactly same content files
- @file_content = SecureRandom.hex(2000000)
+ # need to create new content otherwise git detects that the content has already
+ # been sent and doesn't attempt to send it again, which means that the error
+ # won't be triggered
+ @file_content = SecureRandom.random_bytes(2000000)
end
after(:all) do