[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - test/UnitWOPISaveAs.cpp

Jan Holesovsky kendy at collabora.com
Thu Oct 26 10:27:57 UTC 2017


 test/UnitWOPISaveAs.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 34c67b14d8692ea785112706bc13e709077c2cc0
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu Oct 26 12:17:05 2017 +0200

    SaveAs: Fix unit test when used without ssl.
    
    Change-Id: Ic48908c9e7449fc13458d9211fa743310834bd6b
    Reviewed-on: https://gerrit.libreoffice.org/43882
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at collabora.com>

diff --git a/test/UnitWOPISaveAs.cpp b/test/UnitWOPISaveAs.cpp
index a0c5c3df..d981c551 100644
--- a/test/UnitWOPISaveAs.cpp
+++ b/test/UnitWOPISaveAs.cpp
@@ -40,7 +40,7 @@ public:
     bool filterSendMessage(const char* data, const size_t len, const WSOpCode /* code */, const bool /* flush */, int& /*unitReturn*/) override
     {
         std::string message(data, len);
-        if (message == "saveas: url=https://127.0.0.1:9980/something%20wopi/files/1?access_token=anything filename=hello%20world.txt")
+        if (message == "saveas: url=" + helpers::getTestServerURI() + "/something%20wopi/files/1?access_token=anything filename=hello%20world.txt")
         {
             // successfully exit the test if we also got the outgoing message
             // notifying about saving the file


More information about the Libreoffice-commits mailing list