loading...

Discussion on: Write Go unit tests for db CRUD with random data

Collapse
objque profile image
Mikhail Kalinin

Thanks for great article! Just one question: Am I right that tests are creating entities and do not remove they after test is finished? So, that may cause side effects. Better to use setup/teardown or tx+rollback :)

Collapse
techschoolguru profile image
TECH SCHOOL Author

Hi Mikhail, I don't have to setup/teardown in my tests because I use random data. So they won't conflict with each other.