Skip to content

Conversation

@mgrunberg
Copy link
Contributor

PR fixes the following failures:

BasePreventWritesTest::BasePreventWritesLegacyTest#test_0006_an empty transaction does not raise if preventing writes [/usr/local/bundle/bundler/gems/rails-8b63ea762239/activerecord/test/cases/base_prevent_writes_test.rb:164]:
1 instead of 2 queries were executed.
BasePreventWritesTest#test_0006_an empty transaction does not raise if preventing writes [/usr/local/bundle/bundler/gems/rails-8b63ea762239/activerecord/test/cases/base_prevent_writes_test.rb:61]:
1 instead of 2 queries were executed.
ActiveRecord::AdapterPreventWritesLegacyTest#test_errors_when_an_insert_query_is_called_while_preventing_writes [/usr/local/bundle/bundler/gems/rails-8b63ea762239/activerecord/test/cases/adapter_prevent_writes_test.rb:181]:
6 instead of 0 queries were executed.

@mgrunberg mgrunberg force-pushed the issues/yellowspot/rails-6-1/coerce-test-when-we-produce-more-or-less-queries branch from 4e46ffc to a0d18d9 Compare April 21, 2021 13:08
@wpolicarpo wpolicarpo merged commit 887683e into rails-sqlserver:main Apr 21, 2021
@mgrunberg mgrunberg deleted the issues/yellowspot/rails-6-1/coerce-test-when-we-produce-more-or-less-queries branch January 3, 2022 17:32
lavika pushed a commit to lavika/activerecord-sqlserver-adapter that referenced this pull request Sep 26, 2023
…qlserver#901)

* coerce test because we produce some read queries

* coerce test because we open less transactions

* change coerced test
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.

3 participants