diff options
author | Matt Cotter <matt.cotter@mongodb.com> | 2016-09-12 13:44:36 -0400 |
---|---|---|
committer | Matt Cotter <matt.cotter@mongodb.com> | 2016-10-04 16:01:41 -0400 |
commit | b114c68f6c5b8c386974922b1f4aff3bc06d9976 (patch) | |
tree | fa60459311f462ca337b7a820a0ae158d0d257e2 | |
parent | 15bdad6f352cbc23cef3338fd57d61ac00cc6149 (diff) | |
download | mongo-b114c68f6c5b8c386974922b1f4aff3bc06d9976.tar.gz |
SERVER-25919 make asio stress test less stressful
(cherry picked from commit bb4ab61013c56be2d1a036b6e90a60209b3ca974)
-rw-r--r-- | src/mongo/executor/network_interface_asio_integration_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/executor/network_interface_asio_integration_test.cpp b/src/mongo/executor/network_interface_asio_integration_test.cpp index f2af23d7a97..b52b761476c 100644 --- a/src/mongo/executor/network_interface_asio_integration_test.cpp +++ b/src/mongo/executor/network_interface_asio_integration_test.cpp @@ -232,7 +232,7 @@ private: }; TEST_F(NetworkInterfaceASIOIntegrationTest, StressTest) { - constexpr std::size_t numOps = 10000; + constexpr std::size_t numOps = 1000; std::vector<Status> testResults(numOps, {ErrorCodes::InternalError, "uninitialized"}); ErrorCodes::Error expectedResults[numOps]; CountdownLatch cl(numOps); @@ -249,7 +249,7 @@ TEST_F(NetworkInterfaceASIOIntegrationTest, StressTest) { for (std::size_t i = 0; i < numOps; ++i) { // stagger operations slightly to mitigate connection pool contention - sleepmillis(rng.nextInt32(10)); + sleepmillis(rng.nextInt32(16)); auto r = rng.nextCanonicalDouble(); |