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

Commit 5207a136 by Ruben Bridgewater

Hotfix

1 parent 551b8374
......@@ -12,14 +12,15 @@ if (Support.dialectIsMySQL()) {
describe('[MYSQL Specific] Connector Manager', function() {
it('works correctly after being idle', function() {
var User = this.sequelize.define('User', { username: DataTypes.STRING })
, spy = sinon.spy();
, spy = sinon.spy()
, self = this;
return User.sync({force: true}).then(function() {
return User.create({username: 'user1'}).then(function() {
return User.count().then(function(count) {
expect(count).to.equal(1);
spy();
return this.sequelize.Promise.delay(1000).then(function() {
return self.sequelize.Promise.delay(1000).then(function() {
return User.count().then(function(count) {
expect(count).to.equal(1);
spy();
......
......@@ -1052,8 +1052,8 @@ describe(Support.getTestDialectTeaser('Model'), function() {
});
}),
describe('ManyToMany', function(done) {
beforeEach(function() {
describe('ManyToMany', function() {
beforeEach(function(done) {
var self = this;
self.Country = this.sequelize.define('country', { name: Sequelize.STRING });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!