()
| 146 | let secondTransactionGotNearCommit = false; |
| 147 | |
| 148 | const firstTransaction = async () => { |
| 149 | await this.sequelize.transaction({ isolationLevel }, async t => { |
| 150 | await Dots.update({ color: 'red' }, { |
| 151 | where: { color: 'green' }, |
| 152 | transaction: t |
| 153 | }); |
| 154 | await delay(1500); |
| 155 | firstTransactionGotNearCommit = true; |
| 156 | }); |
| 157 | }; |
| 158 | |
| 159 | const secondTransaction = async () => { |
| 160 | await delay(500); |
no test coverage detected