diff options
author | Stan Hu <stanhu@gmail.com> | 2017-05-22 23:27:15 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-05-22 23:27:15 -0700 |
commit | 7e250672cf0fcbd19edecda44b2a88d39be14b02 (patch) | |
tree | b627726ed8db7b1d2e5f0396d2aab34cb5285bb1 | |
parent | ad47f2094bf61867d2b5e4c24540c7c5b8a6358d (diff) | |
download | gitlab-ce-sh-wait-for-requests-after-js.tar.gz |
Attempt to reduce transient spec failures by waiting for outstanding Ajax/Vue requestssh-wait-for-requests-after-js
-rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a58f4e664b7..5b1a1575b22 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -77,6 +77,10 @@ RSpec.configure do |config| end end + config.after(:each, :js) do + wait_for_requests_complete + end + config.around(:each, :caching) do |example| caching_store = Rails.cache Rails.cache = ActiveSupport::Cache::MemoryStore.new if example.metadata[:caching] |