From e374f906aa7dcd08e08aaaef7378cb5b221b30b8 Mon Sep 17 00:00:00 2001 From: KVS85 Date: Tue, 7 Aug 2018 20:28:07 +0300 Subject: [PATCH] Fix GeneralRequestMock constructor sequence (#6102) --- tests/IResearch/RestHandlerMock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/IResearch/RestHandlerMock.cpp b/tests/IResearch/RestHandlerMock.cpp index 685e085b1c..32814d8da2 100644 --- a/tests/IResearch/RestHandlerMock.cpp +++ b/tests/IResearch/RestHandlerMock.cpp @@ -26,6 +26,7 @@ #include "VocBase/vocbase.h" GeneralRequestMock::GeneralRequestMock(TRI_vocbase_t& vocbase) { + _authenticated = false; // must be set before VocbaseContext::create(...) _isRequestContextOwner = false; // must be set before VocbaseContext::create(...) _context.reset(arangodb::VocbaseContext::create(*this, vocbase)); _context->vocbase().forceUse(); // must be called or ~VocbaseContext() will fail at '_vocbase.release()' @@ -124,4 +125,4 @@ arangodb::Endpoint::TransportType GeneralResponseMock::transportType() { // ----------------------------------------------------------------------------- // --SECTION-- END-OF-FILE -// ----------------------------------------------------------------------------- \ No newline at end of file +// -----------------------------------------------------------------------------