Commit 2e1e68b3 authored by Dan Melnic's avatar Dan Melnic Committed by Facebook GitHub Bot

Increase the timeout value to avoid false positives

Summary: Increase the timeout value to avoid false positives

Reviewed By: kevin-vigor

Differential Revision: D25757480

fbshipit-source-id: b3c2498a2573af323a2291f0d0aa875f897bea38
parent c7166a67
......@@ -32,6 +32,7 @@ using folly::AsyncUDPServerSocket;
using folly::AsyncUDPSocket;
using folly::EventBase;
using folly::IOBuf;
using namespace std::chrono_literals;
using namespace testing;
struct TestData {
......@@ -308,7 +309,9 @@ class UDPClient : private AsyncUDPSocket::ReadCallback, private AsyncTimeout {
}
void sendPing() {
scheduleTimeout(5);
// this should ensure the test finishes
// even if the server does not reply
scheduleTimeout(5s);
if (testData_.isMulti()) {
writePing(testData_.getInBufs(), testData_.getGSOVec());
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment