summaryrefslogtreecommitdiff
path: root/src/mongo/executor/network_interface_asio_integration_test.cpp
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2015-09-30 13:10:14 -0400
committersamantharitter <samantha.ritter@10gen.com>2015-09-30 13:10:29 -0400
commit17a3bd06f4bdb3b7d761ea059b996004a8b6ae7f (patch)
tree27d4c890dd01f8d0dfdff5ae75d6ff6a4c2eb4da /src/mongo/executor/network_interface_asio_integration_test.cpp
parentc4e2be33524776da70d77ada71eaf03ecb8e7d44 (diff)
downloadmongo-17a3bd06f4bdb3b7d761ea059b996004a8b6ae7f.tar.gz
SERVER-20674 tweak test operation timeouts and running times for NetworkInterfaceASIO stress test
Diffstat (limited to 'src/mongo/executor/network_interface_asio_integration_test.cpp')
-rw-r--r--src/mongo/executor/network_interface_asio_integration_test.cpp10
1 files changed, 5 insertions, 5 deletions
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<Status> 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);