Skip to content

Commit 5e7197a

Browse files
committed
test: ignore error for missing killAllSessions on legacy versions
1 parent 4f987f1 commit 5e7197a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/spec-runner/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function prepareDatabaseForSuite(suite, context) {
169169
.admin()
170170
.command({ killAllSessions: [] })
171171
.catch(err => {
172-
if (err.message.match(/no such command/) || err.code === 11601) {
172+
if (err.message.match(/no such (cmd|command)/) || err.code === 11601) {
173173
return;
174174
}
175175

0 commit comments

Comments
 (0)