summaryrefslogtreecommitdiff
path: root/spec/features/projects/clusters/applications_spec.rb
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-07-24 16:05:12 +0100
committerDylan Griffith <dyl.griffith@gmail.com>2018-07-30 13:08:31 +0000
commitad05cb523dcc59caed3079d704acf813188162b2 (patch)
treee6cffcb344590330650ccb597b1ba738fba4e318 /spec/features/projects/clusters/applications_spec.rb
parentab5c97b126567ef5c0482339a127e979d6c8c661 (diff)
downloadgitlab-ce-ad05cb523dcc59caed3079d704acf813188162b2.tar.gz
Fix race condition in auto devops QA spec: ensure we wait for Install button to appear
Diffstat (limited to 'spec/features/projects/clusters/applications_spec.rb')
-rw-r--r--spec/features/projects/clusters/applications_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/features/projects/clusters/applications_spec.rb b/spec/features/projects/clusters/applications_spec.rb
index 99c6b450633..0b319c46b6d 100644
--- a/spec/features/projects/clusters/applications_spec.rb
+++ b/spec/features/projects/clusters/applications_spec.rb
@@ -121,8 +121,9 @@ describe 'Clusters Applications', :js do
def wait_until_helm_created!
retries = 0
- while Clusters::Cluster.last.application_helm.nil? do
+ while Clusters::Cluster.last.application_helm.nil?
raise "Timed out waiting for helm application to be created in DB" if (retries += 1) > 3
+
sleep(1)
end
end