Skip to content

Commit 4f264a8

Browse files
committedJul 11, 2023
test: fix tests re: #13317
1 parent 9616af7 commit 4f264a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎test/schema.uuid.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const util = require('./util');
55

66
const assert = require('assert');
77
const bson = require('bson');
8-
const { randomUUID } = require('crypto');
98

109
const mongoose = start.mongoose;
1110
const Schema = mongoose.Schema;
@@ -131,7 +130,7 @@ describe('SchemaUUID', function() {
131130

132131
it('works with populate (gh-13267)', async function() {
133132
const userSchema = new mongoose.Schema({
134-
_id: { type: 'UUID', default: () => randomUUID() },
133+
_id: { type: 'UUID', default: () => uuidv4() },
135134
name: String,
136135
createdBy: {
137136
type: 'UUID',

0 commit comments

Comments
 (0)
Please sign in to comment.