rochejul / sequelize-mocking

Sequelize extension to deal with data-mocking for testing
MIT License
63 stars 26 forks source link

fix: use transactionType 'IMMEDIATE' to prevent deadlocks #47

Closed ElishaHouzz closed 5 months ago

ElishaHouzz commented 5 months ago

When running multple tests that use transactions we might fails on SQLITE_BUSY: database is locked error. To prevent this I added transactionType: 'IMMEDIATE' to the mock sequelize options.

More info