Skip to content

Commit fe40397

Browse files
wait for model init
1 parent 9a0a987 commit fe40397

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/encryption/encryption.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,7 @@ describe('encryption integration tests', () => {
14281428
name: { type: String, encrypt: { keyId } }
14291429
}, { encryptionType: 'queryableEncryption' });
14301430
const model = connection.model(new UUID().toHexString(), schema);
1431+
await model.init();
14311432
await connection.openUri(process.env.MONGOOSE_TEST_URI, autoEncryptionOptions());
14321433

14331434
await model.insertMany([{ name: { toString: function() { 'asdf';} } }, { name: 'john' }]);

0 commit comments

Comments
 (0)