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 +// -----------------------------------------------------------------------------