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:
parent
c22e69e9e6
commit
e325bc2978
1 changed files with 4 additions and 0 deletions
|
@ -1427,6 +1427,10 @@ void HTTPWSTest::testInsertAnnotationWriter()
|
||||||
|
|
||||||
// Close and reopen the same document and test again.
|
// Close and reopen the same document and test again.
|
||||||
socket->shutdown();
|
socket->shutdown();
|
||||||
|
|
||||||
|
// Make sure the document is fully unloaded.
|
||||||
|
testNoExtraLoolKitsLeft();
|
||||||
|
|
||||||
std::cerr << "Reloading " << std::endl;
|
std::cerr << "Reloading " << std::endl;
|
||||||
socket = loadDocAndGetSocket(_uri, documentURL, testname);
|
socket = loadDocAndGetSocket(_uri, documentURL, testname);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue