From 17e28318ccedf8c0a9699c74d200ad4539eb8f3d Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Mon, 5 Sep 2022 13:59:54 -0400 Subject: [PATCH] test: correctly clean up model re: #9056 --- test/connection.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/connection.test.js b/test/connection.test.js index 02779f18767..d1edc428df1 100644 --- a/test/connection.test.js +++ b/test/connection.test.js @@ -271,6 +271,7 @@ describe('connections:', function() { }); it('allows passing a schema', function() { + mongoose.deleteModel(/Test/); const MyModel = mongoose.model('Test', new Schema({ name: String }));