3 ms·
That's not normal, because the test is now not testing the code in its eventual context (which is : the transaction commits). In my experience unfortunately thi
by dboreham 5y ago
That's not normal, because the test is now not testing the code in its eventual context (which is : the transaction commits). In my experience unfortunately this is a very common pattern (tests are far removed from "reality").
- regularfry 5y agoOnly if your database lacks the tools to do it effectively. "The transaction commits" isn't exclusive with "and you can roll back to before it started".