[Libreoffice-commits] online.git: 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 d3bf2638ead1d66ca3a6a78b20528bd68242a4e0
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

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