diff options
-rw-r--r-- | test/UnitWOPISaveAs.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/UnitWOPISaveAs.cpp b/test/UnitWOPISaveAs.cpp index 2831aa5433..46f5a23099 100644 --- a/test/UnitWOPISaveAs.cpp +++ b/test/UnitWOPISaveAs.cpp @@ -45,20 +45,14 @@ public: { const std::string message(data, len); - const std::string expected( - "saveas: url=" + helpers::getTestServerURI() - + "/something%20wopi/files/1?access_token=anything&reuse_cookies=cook=well " - "filename=hello%20world%251.pdf xfilename=hello world%1.pdf"); - if (message.find(expected) == 0) + if (message.find("saveas: url=") != std::string::npos && + message.find(helpers::getTestServerURI()) != std::string::npos && + message.find("filename=hello%20world%251.pdf") != std::string::npos) { // successfully exit the test if we also got the outgoing message // notifying about saving the file exitTest(TestResult::Ok); } - else - { - LOG_DBG("UnitWOPISaveAs: Skipping unexpected SendMessage: " << message); - } return false; } |