Skip to content

Commit ff411c1

Browse files
wait for model init
1 parent 523fdd3 commit ff411c1

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
@@ -1456,6 +1456,7 @@ describe('encryption integration tests', () => {
14561456
}, { encryptionType: 'queryableEncryption' });
14571457
const model = connection.model(new UUID().toHexString(), schema);
14581458
await connection.openUri(clusterUri, autoEncryptionOptions());
1459+
await model.init();
14591460

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

0 commit comments

Comments
 (0)