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

Extend test_can_write_while_reading_from_replicas_if_explicit #37091

Merged
merged 1 commit into from Aug 30, 2019

Conversation

bogdanvlviv
Copy link
Contributor

  • Ensure that explicit method call connected_to with prevent_writes: false
    turns off 'preventing writes' in the passed block.
  • Ensure that after explicit call method call connected_to with prevent_writes: false
    'preventing writes' is retained

Related to #37065
@eileencodes Please let me know whether you think those asserts makes sense to add.

- Ensure that explicit method call `connected_to` with `prevent_writes: false`
  turns off 'preventing writes' in the passed block.
- Ensure that after explicit call method call `connected_to` with `prevent_writes: false`
  'preventing writes' is retained

Related to rails#37065
@eileencodes eileencodes merged commit 01cc0c1 into rails:master Aug 30, 2019
eileencodes added a commit that referenced this pull request Aug 30, 2019
Extend `test_can_write_while_reading_from_replicas_if_explicit`
@eileencodes
Copy link
Member

Backported to 6-0-stable

@bogdanvlviv bogdanvlviv deleted the extend-test-from-37065 branch August 30, 2019 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants