Skip to content

Speed up design_policy_spec.rb

Luke Duncalfe requested to merge 229668-speed-up-design-policy-spec into master

What does this MR do?

This MR speeds up design_policy_spec.rb.

design_policy_spec.rb has been flagged as a spec that we should attempt to speed up #229668 (closed). Also see https://gitlab.com/gitlab-org/plan/-/issues/145.

It was initially running at around 20s. After these changes the spec runs at around 7s.

Almost all of the time-saving is through the avoidance of assigning users to roles within the project before each test, and instead, doing this work once at the beginning of all tests.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Luke Duncalfe

Merge request reports