summaryrefslogtreecommitdiff
path: root/test/helpers.hpp
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-01-20 16:34:44 -0500
committerAshod Nakashian <ashnakash@gmail.com>2017-01-23 05:41:46 +0000
commit0f73bd9bf2afba5f6a24aa5d0127be553ee55c02 (patch)
treee52cc1b6376ec20b3d6712cc7a099817941bb675 /test/helpers.hpp
parentb497fcfac54d10ca67c0906f59a6b69f0940310e (diff)
wsd: improved testConnectNoLoad
Change-Id: I8eff5b4862067444c8623582dc4f3baa585f164e Reviewed-on: https://gerrit.libreoffice.org/33425 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'test/helpers.hpp')
-rw-r--r--test/helpers.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/helpers.hpp b/test/helpers.hpp
index 4dd8f86a6..cc8205e42 100644
--- a/test/helpers.hpp
+++ b/test/helpers.hpp
@@ -176,7 +176,7 @@ int getErrorCode(LOOLWebSocket& ws, std::string& message, const std::string& tes
bytes = ws.receiveFrame(buffer.begin(), READ_BUFFER_SIZE, flags);
std::cerr << testname << "Got " << LOOLProtocol::getAbbreviatedFrameDump(buffer.begin(), bytes, flags) << std::endl;
}
- while (bytes > 0 && (flags & Poco::Net::WebSocket::FRAME_OP_BITMASK) != Poco::Net::WebSocket::FRAME_OP_CLOSE);
+ while (bytes != 0 && (flags & Poco::Net::WebSocket::FRAME_OP_BITMASK) != Poco::Net::WebSocket::FRAME_OP_CLOSE);
if (bytes > 0)
{