summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-03-17 16:01:28 -0400
committerWaley Chen <waleycz@gmail.com>2016-03-17 16:01:28 -0400
commitd67ed5781d07b0c40be53f18878d7f6061672b3c (patch)
tree6b19dd931fda33f401f7613ce0da1c6ce11707ae
parent76379d3859d744ba400db7334d49246b198a410c (diff)
downloadmongo-d67ed5781d07b0c40be53f18878d7f6061672b3c.tar.gz
SERVER-23217 Hang in network_interface_asio_test
-rw-r--r--src/mongo/executor/network_interface_asio_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/executor/network_interface_asio_test.cpp b/src/mongo/executor/network_interface_asio_test.cpp
index 2fe5d5e5e17..c188a182e1f 100644
--- a/src/mongo/executor/network_interface_asio_test.cpp
+++ b/src/mongo/executor/network_interface_asio_test.cpp
@@ -304,7 +304,7 @@ TEST_F(NetworkInterfaceASIOTest, CancelWithTimeoutAndNetworkError) {
auto cbh = makeCallbackHandle();
auto deferred = startCommand(
cbh,
- RemoteCommandRequest(testHost, "testDB", BSON("a" << 1), BSONObj(), Milliseconds(100)));
+ RemoteCommandRequest(testHost, "testDB", BSON("a" << 1), BSONObj(), Milliseconds(1000)));
// Create and initialize a stream so operation can begin
auto stream = streamFactory().blockUntilStreamExists(testHost);
@@ -319,7 +319,7 @@ TEST_F(NetworkInterfaceASIOTest, CancelWithTimeoutAndNetworkError) {
// Trigger a timeout, a cancellation, and a network error
stream->setError(make_error_code(ErrorCodes::HostUnreachable));
- timerFactory().fastForward(Milliseconds(500));
+ timerFactory().fastForward(Milliseconds(2000));
net().cancelCommand(cbh);
}