提交 0bd0c288 编写于 作者: M Matthew Draper 提交者: GitHub

Merge pull request #28169 from kirs/ensure-conn-verify

Use ensure block for things we cleanup in tests
......@@ -42,7 +42,7 @@ def test_no_automatic_reconnection_after_timeout
@connection.update("set @@wait_timeout=1")
sleep 2
assert !@connection.active?
ensure
# Repair all fixture connections so other tests won't break.
@fixture_connections.each(&:verify!)
end
......
......@@ -178,6 +178,7 @@ def test_reconnection_after_actual_disconnection_with_verify
"umm -- looks like you didn't break the connection, because we're still " \
"successfully querying with the same connection pid."
ensure
# Repair all fixture connections so other tests won't break.
@fixture_connections.each(&:verify!)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册