Skip to content

Commit 26c9ccf

Browse files
committed
test: one more permutation
1 parent 96dff53 commit 26c9ccf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/operations/drop.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ export async function dropCollections(
9090
// the message as well here and below.
9191
if (
9292
!(err instanceof MongoServerError) ||
93-
(err.code !== MONGODB_ERROR_CODES.NamespaceNotFound && !/ns not found/.test(err.message))
93+
(err.code !== MONGODB_ERROR_CODES.NamespaceNotFound &&
94+
!/ns not found|ns does not exist/.test(err.message))
9495
) {
9596
throw err;
9697
}

0 commit comments

Comments
 (0)