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

[#49285] Fix flaky spec ./modules/storages/spec/features/create_file_links_spec.rb:85

Kabiru Mwenjaf9d4ae550a9a
diff --git a/modules/storages/spec/features/create_file_links_spec.rb b/modules/storages/spec/features/create_file_links_spec.rb
index 88ddc12348e..e0cdd9e8417 100644
--- a/modules/storages/spec/features/create_file_links_spec.rb
+++ b/modules/storages/spec/features/create_file_links_spec.rb
@@ -59,7 +59,7 @@ RSpec.describe 'Managing file links in work package', js: true, webmock: true do
before do
allow(Storages::FileLinkSyncService).to receive(:new).and_return(sync_service)
- stub_request(:get, "https://host1.example.com/ocs/v1.php/cloud/user")
+ stub_request(:get, "#{storage.host}/ocs/v1.php/cloud/user")
.with(
headers: {
'Authorization' => 'Bearer 1234567890-1',