Skip to content

Commit

Permalink
testserver: Increase timeout for receiving request
Browse files Browse the repository at this point in the history
  • Loading branch information
danvratil committed May 2, 2022
1 parent b259bbd commit 7bfdae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testhttpserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class TestHttpServer {
mHasConnection = true;
mServerReady.notify_all();

if (conn->waitForReadyRead(1000)) {
if (conn->waitForReadyRead(10000)) {
const auto request = conn->readLine();
qDebug() << request;
if (request == "GET /stream HTTP/1.1\r\n") {
Expand Down Expand Up @@ -167,7 +167,7 @@ class TestHttpServer {
} else if (!mStop) {
if (conn->state() == std::remove_cvref_t<decltype(*conn)>::ConnectedState) {
if (!mExpectTimeout) {
QFAIL("No request within 1 second");
QFAIL("No request within 10 seconds");
}
} else {
qDebug() << "Client disconnected without sending request";
Expand Down

0 comments on commit 7bfdae3

Please sign in to comment.