diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-07-24 18:05:12 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-07-30 16:08:31 +0300 |
commit | ad05cb523dcc59caed3079d704acf813188162b2 (patch) | |
tree | e6cffcb344590330650ccb597b1ba738fba4e318 /spec/features | |
parent | ab5c97b126567ef5c0482339a127e979d6c8c661 (diff) |
Fix race condition in auto devops QA spec: ensure we wait for Install button to appear
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/clusters/applications_spec.rb | 3 |
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 |