1
0
Fork 0

Make sure VPackObjectBuilder is closed at exit of function scope. (#5347)

This commit is contained in:
Max Neunhöffer 2018-05-15 12:00:41 +02:00 committed by GitHub
parent 1c1e0615be
commit c1e35f7bb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -141,8 +141,8 @@ Node createAgency(TestStructureType const& createTestStructure) {
VPackBuilder createJob(std::string const& server) {
VPackBuilder builder;
VPackObjectBuilder a(&builder);
{
VPackObjectBuilder a(&builder);
builder.add("creator", VPackValue("unittest"));
builder.add("type", VPackValue("cleanOutServer"));
builder.add("server", VPackValue(server));

View File

@ -67,8 +67,8 @@ const char *agency =
VPackBuilder createJob() {
VPackBuilder builder;
VPackObjectBuilder a(&builder);
{
VPackObjectBuilder a(&builder);
builder.add("creator", VPackValue("1"));
builder.add("type", VPackValue("failedFollower"));
builder.add("database", VPackValue(DATABASE));