wsd: test: better UnitOverload logging
Change-Id: I2b5177b4b3500cfb252e8d9f7a2f6b049b25bc9e Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>pull/8752/head
parent
ad74670af5
commit
d60d19eb7a
|
@ -223,27 +223,33 @@ public:
|
|||
const Poco::URI wopiURL(helpers::getTestServerURI() + wopiPath +
|
||||
"&testname=" + getTestname());
|
||||
|
||||
std::string wopiSrc = Util::encodeURIComponent(wopiURL.toString());
|
||||
const std::string wopiSrc =
|
||||
Util::encodeURIComponent(wopiURL.toString());
|
||||
const std::string documentURL = "/cool/" + wopiSrc + "/ws";
|
||||
|
||||
// This is just a client connection that is used from the tests.
|
||||
LOG_TST("Connecting test client to COOL (#"
|
||||
<< _count << " connection): /cool/" << wopiSrc << "/ws");
|
||||
<< _count << " connection): " << documentURL);
|
||||
|
||||
Poco::URI uri(helpers::getTestServerURI());
|
||||
const std::string documentURL = "/cool/" + wopiSrc + "/ws";
|
||||
|
||||
std::shared_ptr<http::WebSocketSession> ws =
|
||||
http::WebSocketSession::create(uri.toString());
|
||||
_webSessions.emplace_back(ws);
|
||||
|
||||
TST_LOG("Connection to " << uri.toString() << " is "
|
||||
<< (ws->secure() ? "secure" : "plain"));
|
||||
|
||||
http::Request req(documentURL);
|
||||
ws->asyncRequest(req, socketPoll());
|
||||
|
||||
LOG_TST("Load #" << _count);
|
||||
helpers::sendTextFrame(ws, "load url=" + wopiSrc, getTestname());
|
||||
if (ws->asyncRequest(req, socketPoll()))
|
||||
{
|
||||
_webSessions.emplace_back(ws);
|
||||
LOG_TST("Load #" << _count);
|
||||
helpers::sendTextFrame(ws, "load url=" + wopiSrc, getTestname());
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_TST("Failed async request #" << _count << " to "
|
||||
<< documentURL);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue