不要怂,就是干,撸起袖子干!

Commit 934d253f by Sascha Depold

clean up the transactions

1 parent 4ab48f75
Showing with 4 additions and 2 deletions
...@@ -182,8 +182,10 @@ describe(Support.getTestDialectTeaser("Sequelize#transaction"), function () { ...@@ -182,8 +182,10 @@ describe(Support.getTestDialectTeaser("Sequelize#transaction"), function () {
.Model .Model
.create({ name: 'omnom' }, { transaction: t2 }) .create({ name: 'omnom' }, { transaction: t2 })
.error(function(err) { .error(function(err) {
expect(err).to.be.defined t2.rollback().success(function() {
done() expect(err).to.be.defined
done()
})
}) })
setTimeout(function() { t1.commit() }, 100) setTimeout(function() { t1.commit() }, 100)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!