()
| 698 | const User = sequelize.define(class="st">'User', { username: Support.Sequelize.STRING }); |
| 699 | await User.sync({ force: true }); |
| 700 | const newTransactionFunc = async function() { |
| 701 | const t = await sequelize.transaction({ type: Support.Sequelize.Transaction.TYPES.EXCLUSIVE }); |
| 702 | await User.create({}, { transaction: t }); |
| 703 | return t.commit(); |
| 704 | }; |
| 705 | await Promise.all([newTransactionFunc(), newTransactionFunc()]); |
| 706 | const users = await User.findAll(); |
| 707 | expect(users.length).to.equal(2); |
no test coverage detected