Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

disable flaky spec

ulfertsbd6625131348
diff --git a/modules/storages/spec/features/manage_project_storage_spec.rb b/modules/storages/spec/features/manage_project_storage_spec.rb
index b20960579c8..fb0a0d1e73f 100644
--- a/modules/storages/spec/features/manage_project_storage_spec.rb
+++ b/modules/storages/spec/features/manage_project_storage_spec.rb
@@ -79,6 +79,8 @@ RSpec.describe(
end
before do
+ skip("Flaky test disabled. Fix it in https://community.openproject.org/wp/49285")
+
oauth_client_token
stub_request(:propfind, "#{storage.host}/remote.php/dav/files/#{oauth_client_token.origin_user_id}/")
diff --git a/spec/support/webmock.rb b/spec/support/webmock.rb
index 9c660ea65b4..e293376c8c1 100644
--- a/spec/support/webmock.rb
+++ b/spec/support/webmock.rb
@@ -37,10 +37,13 @@ RSpec.configure do |config|
config.around(:example, webmock: true) do |example|
# When we enable webmock, no connections other than stubbed ones are allowed.
- # We will exempt local connections from this block, since selenium etc.
- # uses localhost to communicate with the browser.
- # Leaving this off will randomly fail some specs with WebMock::NetConnectNotAllowedError
- WebMock.disable_net_connect!(allow_localhost: true, allow: ["selenium-hub", Capybara.server_host])
+ # We will exempt:
+ # * local connections, since selenium etc. uses localhost to communicate with the browser.
+ # Leaving this off will randomly fail some specs with WebMock::NetConnectNotAllowedError
+ # * chromedriver, since it might need to be downloaded
+ WebMock.disable_net_connect!(allow_localhost: true, allow: ["selenium-hub",
+ Capybara.server_host,
+ 'chromedriver.storage.googleapis.com'])
WebMock.enable!
example.run
ensure