-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip imcompatible tests #1420
Skip imcompatible tests #1420
Conversation
Fixed short-circuiting of test cases preventing then from being run standalone.
d1f751a
to
3f2a370
Compare
test/manipulation.test.js
Outdated
@@ -1822,6 +1825,11 @@ describe('manipulation', function() { | |||
}); | |||
|
|||
it('should allow delete(id) - success', function(done) { | |||
// Suspect race condition happens somewhere |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will remove the comments. Fixed now.
test/manipulation.test.js
Outdated
@@ -1837,6 +1845,7 @@ describe('manipulation', function() { | |||
}); | |||
|
|||
it('should allow delete(id) - fail', function(done) { | |||
// Same reason, please check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
test/manipulation.test.js
Outdated
@@ -1860,8 +1863,7 @@ describe('manipulation', function() { | |||
}); | |||
}); | |||
|
|||
bdd.itIf(connectorCapabilities.supportStrictDelete !== false, 'should allow delete(id) - ' + | |||
'fail with error', function(done) { | |||
it('should allow delete(id) - ' + 'fail with error', function(done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supportStrictDelete
flag shouldn't be removed along with the cloudantCompatibility
flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supportStrictDelete needs to be stay.
test/manipulation.test.js
Outdated
if (err) return done(err); | ||
info.should.have.property('count', 5); | ||
Person.find({where: filterBrett}, function(err, people) { | ||
bdd.itIf(connectorCapabilities.updateWithoutId !== false && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, hold on, IIRC this one should be a good test for cloudant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢🇮🇹
0b7f55d
to
4976c10
Compare
connect to loopbackio/loopback-connector-cloudant#33
related to loopbackio/loopback-connector-cloudant#159