diff options
author | Benety Goh <benety@mongodb.com> | 2016-10-05 11:34:41 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2016-10-05 11:34:41 -0400 |
commit | 15ff9c78a8dfccd7ce2d2c861a646170e0cd41cc (patch) | |
tree | 65a725d1b92aace2c8d570f058cdb9f87a3d8441 | |
parent | e5dab1bdd183b6ee1a6e83ec53139a268f05f5c3 (diff) | |
download | mongo-15ff9c78a8dfccd7ce2d2c861a646170e0cd41cc.tar.gz |
Revert "SERVER-25919 make asio stress test less stressful"
This reverts commit b114c68f6c5b8c386974922b1f4aff3bc06d9976.
-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 b52b761476c..f2af23d7a97 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 = 1000; + constexpr std::size_t numOps = 10000; 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(16)); + sleepmillis(rng.nextInt32(10)); auto r = rng.nextCanonicalDouble(); |