wsd: ensure test doc is closed before reloading

This reduces the chance for random test failures.

Change-Id: I961a502d57a3cb4946b3b7febc6e6b03e7f36aa1
Reviewed-on: https://gerrit.libreoffice.org/33858
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
Ashod Nakashian 2017-01-30 12:40:37 -05:00 committed by Ashod Nakashian
parent c22e69e9e6
commit e325bc2978

View file

@ -1427,6 +1427,10 @@ void HTTPWSTest::testInsertAnnotationWriter()
// Close and reopen the same document and test again.
socket->shutdown();
// Make sure the document is fully unloaded.
testNoExtraLoolKitsLeft();
std::cerr << "Reloading " << std::endl;
socket = loadDocAndGetSocket(_uri, documentURL, testname);