From 17a3bd06f4bdb3b7d761ea059b996004a8b6ae7f Mon Sep 17 00:00:00 2001 From: samantharitter Date: Wed, 30 Sep 2015 13:10:14 -0400 Subject: SERVER-20674 tweak test operation timeouts and running times for NetworkInterfaceASIO stress test --- src/mongo/executor/network_interface_asio_integration_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mongo/executor') diff --git a/src/mongo/executor/network_interface_asio_integration_test.cpp b/src/mongo/executor/network_interface_asio_integration_test.cpp index afb9f5bcea7..edd00eee0a8 100644 --- a/src/mongo/executor/network_interface_asio_integration_test.cpp +++ b/src/mongo/executor/network_interface_asio_integration_test.cpp @@ -145,13 +145,13 @@ TEST_F(NetworkInterfaceASIOIntegrationTest, Timeouts) { << "bar" << "documents" << BSON_ARRAY(BSON("foo" << 1)))); - // Run a find command to sleep for 1 second. We should time this out - // given our timeout of 100 milliseconds. + // Run a find command to sleep for 3 seconds. We should time this out + // given our timeout of 500 milliseconds. assertCommandFailsOnClient("admin", BSON("sleep" << 1 << "w" << "false" - << "secs" << 5), - Milliseconds(100), + << "secs" << 3), + Milliseconds(500), ErrorCodes::ExceededTimeLimit); // Run a find command with a $where with an infinite loop. The server should time out the @@ -237,7 +237,7 @@ public: static Deferred runLongOp(Fixture* fixture, Pool* pool) { return StressTestOp(BSON("sleep" << 1 << "w" << "false" - << "secs" << 10), + << "secs" << 3), ErrorCodes::OK, false, executor::RemoteCommandRequest::kNoTimeout).run(fixture, pool); -- cgit v1.2.1