1
0
Fork 0

Fix GeneralRequestMock constructor sequence (#6102)

This commit is contained in:
KVS85 2018-08-07 20:28:07 +03:00 committed by Andrey Abramov
parent 66efaa6022
commit e374f906aa
1 changed files with 2 additions and 1 deletions

View File

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