Skip to content

Commit

Permalink
test: temporarily skip strictQuery tests to see if they fix #9056 tes…
Browse files Browse the repository at this point in the history
…t failure
  • Loading branch information
vkarpov15 committed Sep 5, 2022
1 parent c13f2a6 commit d6f6ce8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ jobs:
uses: denoland/setup-deno@v1
with:
deno-version: v1.25.x
- run: deno --version
- run: npm install
- name: Run Deno tests
run: npm run test-deno
Expand Down
4 changes: 1 addition & 3 deletions test/query.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3480,9 +3480,7 @@ describe('Query', function() {

const original = await User.create({ token: 'rightToken' });

let doc = await User.findOne({ token: 'wrongToken', _bsontype: 'a' }).catch(err => {
console.log('Caught', err, err instanceof Error);
});
let doc = await User.findOne({ token: 'wrongToken', _bsontype: 'a' });
assert.ok(!doc);

doc = await User.findOne(original._id);
Expand Down
2 changes: 1 addition & 1 deletion test/schema.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2442,7 +2442,7 @@ describe('schema', function() {
assert.ok(!schema.virtuals.id);
});

describe('mongoose.set(`strictQuery`, value); (gh-6658)', function() {
describe.skip('mongoose.set(`strictQuery`, value); (gh-6658)', function() {
let strictQueryOriginalValue;

this.beforeEach(() => strictQueryOriginalValue = mongoose.get('strictQuery'));
Expand Down

0 comments on commit d6f6ce8

Please sign in to comment.