summaryrefslogtreecommitdiff
path: root/spec/features/projects/blobs
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-08-12 22:19:35 +0200
committerJan Provaznik <jprovaznik@gitlab.com>2018-08-13 07:35:50 +0200
commit21a8cc2c2a867f44ebe6df8377b0ebe391c2ebb2 (patch)
treebf2bac86eb1c68ea17fcbc21e16de2c3b0a6852c /spec/features/projects/blobs
parent91795dcd1c0d12d2350e0d00489d89be9fa29b32 (diff)
downloadgitlab-ce-21a8cc2c2a867f44ebe6df8377b0ebe391c2ebb2.tar.gz
Fix specs failing on duplicate gpg signature
It seems there are additional async requests related to gpg signature, w/o waiting for finishing all requests it fails on: Duplicate entry '...' for key 'index_gpg_signatures_on_commit_sha'
Diffstat (limited to 'spec/features/projects/blobs')
-rw-r--r--spec/features/projects/blobs/shortcuts_blob_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/features/projects/blobs/shortcuts_blob_spec.rb b/spec/features/projects/blobs/shortcuts_blob_spec.rb
index 7203c5b1c21..3925de6cfb9 100644
--- a/spec/features/projects/blobs/shortcuts_blob_spec.rb
+++ b/spec/features/projects/blobs/shortcuts_blob_spec.rb
@@ -18,6 +18,7 @@ describe 'Blob shortcuts', :js do
describe 'pressing "y"' do
it 'redirects to permalink with commit sha' do
visit_blob
+ wait_for_requests
find('body').native.send_key('y')
@@ -27,6 +28,7 @@ describe 'Blob shortcuts', :js do
it 'maintains fragment hash when redirecting' do
fragment = "L1"
visit_blob(fragment)
+ wait_for_requests
find('body').native.send_key('y')