Skip to content

Commit c4e6ab0

Browse files
committed
add failpoint to correct commands
1 parent f2f4d63 commit c4e6ab0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/integration/client-side-operations-timeout/node_csot.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
type Collection,
88
type Db,
99
type FindCursor,
10+
LEGACY_HELLO_COMMAND,
1011
type MongoClient,
1112
MongoOperationTimeoutError
1213
} from '../../mongodb';
@@ -116,7 +117,7 @@ describe('CSOT driver tests', () => {
116117
configureFailPoint: 'failCommand',
117118
mode: 'alwaysOn',
118119
data: {
119-
failCommands: ['ping'],
120+
failCommands: ['ping', 'hello', LEGACY_HELLO_COMMAND],
120121
blockConnection: true,
121122
blockTimeMS: 10
122123
}
@@ -132,7 +133,7 @@ describe('CSOT driver tests', () => {
132133
configureFailPoint: 'failCommand',
133134
mode: 'off',
134135
data: {
135-
failCommands: ['ping'],
136+
failCommands: ['ping', 'hello', LEGACY_HELLO_COMMAND],
136137
blockConnection: true,
137138
blockTimeMS: 10
138139
}

0 commit comments

Comments
 (0)