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

Commit 934d253f by Sascha Depold

clean up the transactions

1 parent 4ab48f75
Showing with 2 additions and 0 deletions
...@@ -182,9 +182,11 @@ describe(Support.getTestDialectTeaser("Sequelize#transaction"), function () { ...@@ -182,9 +182,11 @@ describe(Support.getTestDialectTeaser("Sequelize#transaction"), function () {
.Model .Model
.create({ name: 'omnom' }, { transaction: t2 }) .create({ name: 'omnom' }, { transaction: t2 })
.error(function(err) { .error(function(err) {
t2.rollback().success(function() {
expect(err).to.be.defined expect(err).to.be.defined
done() 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!