Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G gitlab-ce
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedinexedi
  • gitlab-ce
  • Repository
  • gitlab-ce
  • spec
  • lib
  • gitlab
  • safe_request_store_spec.rb
Find file BlameHistoryPermalink
  • Michael Kozono's avatar
    Fix RequestStore-related test failure · b720ea06
    Michael Kozono authored Sep 25, 2018
    The test was failing
    https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/101444126 because
    https://gitlab.com/gitlab-org/gitlab-ee/blob/a04056efad6639420b469eced5130751a8cf2757/ee/spec/support/request_store.rb
    which is in EE only, clears the RequestStore before every test,
    regardless of whether RequestStore is active. This test is unusual
    because it sets up RequestStore without it being active, to make sure
    that the tested code doesn’t attempt to use RequestStore. These two
    unusual facts combined to cause the failure in EE only. The fix works
    because of the particular order of RSpec hooks in the test lifecycle.
    b720ea06
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7