提交 f0f4dffd 编写于 作者: J Jeremy Kemper

Skip pg locking test due to connection checkout deadlock detection

上级 7eb4f2ec
......@@ -282,11 +282,14 @@ def test_no_locks_no_wait
assert first.end > second.end
end
def test_second_lock_waits
assert [0.2, 1, 5].any? { |zzz|
first, second = duel(zzz) { Person.find 1, :lock => true }
second.end > first.end
}
# Hit by ruby deadlock detection since connection checkout is mutexed.
if RUBY_VERSION < '1.9.2'
def test_second_lock_waits
assert [0.2, 1, 5].any? { |zzz|
first, second = duel(zzz) { Person.find 1, :lock => true }
second.end > first.end
}
end
end
protected
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册