summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}