wsd: test: add IsExitSave check in UnitWOPIAsyncUpload_Close

Change-Id: I80936316fb172e5a4ef1811a66d061e63ea0bb27
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
This commit is contained in:
Ashod Nakashian 2023-01-14 10:47:44 -05:00 committed by Henry Castro
parent 6b8eba8949
commit d8505de24c

View file

@ -52,6 +52,9 @@ public:
// We requested the save.
LOK_ASSERT_EQUAL(std::string("false"), request.get("X-COOL-WOPI-IsAutosave"));
// Certainly not exiting yet.
LOK_ASSERT_EQUAL(std::string("false"), request.get("X-COOL-WOPI-IsExitSave"));
// Fail with error.
LOG_TST("assertPutFileRequest: returning 404 to simulate PutFile failure");
return Util::make_unique<http::Response>(http::StatusLine(404));