Skip to content

Commit 91a3a2d

Browse files
committed
Don't expect rollback to cause a reconnect
1 parent e4193de commit 91a3a2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

activerecord/test/cases/adapter_test.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,9 @@ def teardown
645645

646646
assert_equal 1, invocations # the whole transaction block is not retried
647647

648-
# After the (outermost) transaction block failed, it reconnected
649-
assert_predicate @connection, :active?
648+
# After the (outermost) transaction block failed, the connection is
649+
# ready to reconnect on next use, but hasn't done so yet
650+
assert_not_predicate @connection, :active?
650651
assert_operator Post.count, :>, 0
651652
end
652653

0 commit comments

Comments
 (0)