test: fix test failure in MySQL connector
Fix a test using a string Person.id value to use a numeric value instead, in order to support connectors that use numeric ids by default.
This commit is contained in:
parent
1fbaf4e382
commit
35b549543d
|
@ -617,7 +617,7 @@ describe('manipulation', function () {
|
||||||
|
|
||||||
it('should allow save() of the created instance', function(done) {
|
it('should allow save() of the created instance', function(done) {
|
||||||
Person.updateOrCreate(
|
Person.updateOrCreate(
|
||||||
{ id: 'new-id', name: 'a-name' },
|
{ id: 999 /* a new id */, name: 'a-name' },
|
||||||
function(err, inst) {
|
function(err, inst) {
|
||||||
if (err) return done(err);
|
if (err) return done(err);
|
||||||
inst.save(done);
|
inst.save(done);
|
||||||
|
|
Loading…
Reference in New Issue