Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent parallel test failures in request_spec #3505

Conversation

philippthun
Copy link
Member

I've seen test failures for the VCAP::Request.user_guid context that seem to be caused by parallel test execution. Thus the tests have been changed to mimic those in the VCAP::Request.current_id context, i.e. the Steno.config.context is mocked.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

I've seen test failures for the 'VCAP::Request.user_guid' context that
seem to be caused by parallel test execution. Thus the tests have been
changed to mimic those in the 'VCAP::Request.current_id' context, i.e.
the 'Steno.config.context' is mocked.
Copy link
Member

@moleske moleske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me. I couldn't figure out why one might have not mocked out this case of Steno but mocked the rest of the tests in the file

@moleske moleske merged commit e92ef7b into cloudfoundry:main Nov 3, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants