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

Fix flaky test

Christophe Bliard206974a9d8c5
diff --git a/modules/storages/spec/features/create_file_links_spec.rb b/modules/storages/spec/features/create_file_links_spec.rb
index e0cdd9e8417..385499f4da7 100644
--- a/modules/storages/spec/features/create_file_links_spec.rb
+++ b/modules/storages/spec/features/create_file_links_spec.rb
@@ -63,7 +63,7 @@ RSpec.describe 'Managing file links in work package', js: true, webmock: true do
.with(
headers: {
'Authorization' => 'Bearer 1234567890-1',
- 'Host' => 'host1.example.com',
+ 'Host' => storage.host,
'Ocs-Apirequest' => 'true',
'Accept' => "application/json"
}