diff options
author | Jason Chan <jason.chan@mongodb.com> | 2019-12-18 00:26:39 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-12-18 00:26:39 +0000 |
commit | e83c51c61fa9907459e1cfac9e4bb3517445612f (patch) | |
tree | 0868326d2bbb7c7d7b8bbc2f741c7a28b79358f8 /src/mongo/rpc | |
parent | 44502cd851185934b108920cb82cfe0ced621f5f (diff) | |
download | mongo-e83c51c61fa9907459e1cfac9e4bb3517445612f.tar.gz |
SERVER-44514 awaitIsMasterResponse returns early on topology changes
Diffstat (limited to 'src/mongo/rpc')
-rw-r--r-- | src/mongo/rpc/op_msg_integration_test.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/rpc/op_msg_integration_test.cpp b/src/mongo/rpc/op_msg_integration_test.cpp index 40a6ee044a8..4edb0fab6f3 100644 --- a/src/mongo/rpc/op_msg_integration_test.cpp +++ b/src/mongo/rpc/op_msg_integration_test.cpp @@ -513,10 +513,8 @@ TEST(OpMsg, ServerHandlesExhaustIsMasterWithTopologyChange) { auto beforeExhaustCommand = tickSource->getTicks(); ASSERT(conn->call(request, reply)); auto afterFirstResponse = tickSource->getTicks(); - // TODO SERVER-44514: Change the following assertion to use ASSERT_LT once the server responds - // immediately on a topologyVersion with a different processId. // Allow for clock skew when testing the response time. - ASSERT_GT(tickSource->ticksTo<Milliseconds>(afterFirstResponse - beforeExhaustCommand), + ASSERT_LT(tickSource->ticksTo<Milliseconds>(afterFirstResponse - beforeExhaustCommand), Milliseconds(50)); ASSERT(OpMsg::isFlagSet(reply, OpMsg::kMoreToCome)); res = OpMsg::parse(reply).body; |