Fix the test that was broken by #16445 rather than deleting it
Since the counter cache was properly being updated, the model became stale. Simply reloading the model before attempting to destroy is sufficient for this case. I believe this is enough of an edge case to be a valid change to the tests, even though it represents a potential breaking change.
Showing
想要评论请 注册 或 登录