Skip to content

Commit

Permalink
SERVER-25919 make asio stress test less stressful
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Cotter committed Sep 13, 2016
1 parent cbbb673 commit bb4ab61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class StressTestOp {
};

TEST_F(NetworkInterfaceASIOIntegrationTest, StressTest) {
constexpr std::size_t numOps = 10000;
constexpr std::size_t numOps = 1000;
RemoteCommandResponse testResults[numOps];
ErrorCodes::Error expectedResults[numOps];
CountdownLatch cl(numOps);
Expand All @@ -264,7 +264,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();

Expand Down

0 comments on commit bb4ab61

Please sign in to comment.