Skip to content

Commit db72dbf

Browse files
Fix CI?
1 parent da9f98e commit db72dbf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/encryption/encryption.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,9 +1432,6 @@ describe('encryption integration tests', () => {
14321432
});
14331433

14341434
describe('QE encrypted queries', function() {
1435-
beforeEach(function() {
1436-
this.timeout(5_000);
1437-
});
14381435
describe('when a field is configured for equality queries', function() {
14391436
it('can be queried with mongoose', async function() {
14401437
connection = mongoose.createConnection();
@@ -1443,6 +1440,7 @@ describe('encryption integration tests', () => {
14431440
}, { encryptionType: 'queryableEncryption' });
14441441
const model = connection.model(new UUID().toHexString(), schema);
14451442
await connection.openUri(clusterUri, autoEncryptionOptions());
1443+
await model.init();
14461444

14471445
await model.insertMany([{ name: 'bailey' }, { name: 'john' }]);
14481446

@@ -1461,7 +1459,7 @@ describe('encryption integration tests', () => {
14611459
await connection.openUri(clusterUri, autoEncryptionOptions());
14621460
await model.init();
14631461

1464-
await model.insertMany([{ name: { toString: function() { 'asdf';} } }, { name: 'john' }]);
1462+
await model.insertMany([{ name: 'bailey' }, { name: 'john' }]);
14651463

14661464
await assert.rejects(() => {
14671465
return model.findOne({ name: 'bailey' });

0 commit comments

Comments
 (0)