diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-08-28 14:02:38 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-08-28 19:09:18 -0400 |
commit | 02120b0285cdb0a0a3ac2c2b69160193b9940206 (patch) | |
tree | a85a36cd0fb8529e96b7a32934a3d2e8729eabec | |
parent | a3a02da6327b4995a75912c4fde4022b089d4947 (diff) | |
download | mongo-02120b0285cdb0a0a3ac2c2b69160193b9940206.tar.gz |
SERVER-30866 Make op_msg_integration_test reconnect when clearing fail point
-rw-r--r-- | src/mongo/util/net/op_msg_integration_test.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mongo/util/net/op_msg_integration_test.cpp b/src/mongo/util/net/op_msg_integration_test.cpp index 3942c5dcf76..8da36c20902 100644 --- a/src/mongo/util/net/op_msg_integration_test.cpp +++ b/src/mongo/util/net/op_msg_integration_test.cpp @@ -139,14 +139,19 @@ TEST(OpMsg, CloseConnectionOnFireAndForgetNotMasterError) { output)) << output; ON_BLOCK_EXIT([&] { - ASSERT(conn.runCommand("admin", - fromjson(R"({ + try { + uassertStatusOK(conn.connect(host, "integration_test-cleanup")); + ASSERT(conn.runCommand("admin", + fromjson(R"({ configureFailPoint: 'skipCheckingForNotMasterInCommandDispatch', mode: 'off' })"), - output)) - << output; + output)) + << output; + } catch (...) { + std::terminate(); + } }); |