diff options
author | Reo Kimura <reo.kimura@mongodb.com> | 2021-12-23 21:32:15 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-12-23 22:38:02 +0000 |
commit | 9766c982d67c2a8584e329f024d702d8e2c8138e (patch) | |
tree | de38132b8e50ca59b124d5ad1d7941760b09d0ee | |
parent | 38eddb1dbcb9f4bf412975921279f33e91a43b13 (diff) | |
download | mongo-9766c982d67c2a8584e329f024d702d8e2c8138e.tar.gz |
SERVER-61069 Check that operations fail with network error
-rw-r--r-- | jstests/noPassthrough/socket_disconnect_kills.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/jstests/noPassthrough/socket_disconnect_kills.js b/jstests/noPassthrough/socket_disconnect_kills.js index afec864763e..cf79caf4555 100644 --- a/jstests/noPassthrough/socket_disconnect_kills.js +++ b/jstests/noPassthrough/socket_disconnect_kills.js @@ -44,7 +44,9 @@ function check(client, pre, post) { try { pre(conn); } catch (e) { - throw e; + if (isNetworkError(e)) { + throw e; + } } }, [], "error doing query: failed: network error while attempting"); @@ -183,13 +185,8 @@ function runTests(client) { [[checkClosedEarly, runCommand({count: "test"})], [checkClosedEarly, runCommand({distinct: "test", key: "x"})], - [checkClosedEarly, runCommand({authenticate: "test", user: "x", pass: "y"})], - [checkClosedEarly, runCommand({getnonce: 1})], - [checkClosedEarly, runCommand({saslStart: 1})], - [checkClosedEarly, runCommand({saslContinue: 1})], [checkClosedEarly, runCommand({hello: 1})], [checkClosedEarly, runCommand({listCollections: 1})], - [checkClosedEarly, runCommand({listDatabases: 1})], [checkClosedEarly, runCommand({listIndexes: "test"})], ].forEach(runWithCmdFailPointEnabled(client)); } |