Deserialize Arena after VectorRef in flat_buffers unit test

This commit is contained in:
Andrew Noyes 2019-07-29 15:45:54 -07:00
parent 438b20bc30
commit 9d32cbcf50
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* serialize.h
* flat_buffers.cpp
*
* This source file is part of the FoundationDB open source project
*
@ -452,7 +452,7 @@ TEST_CASE("/flow/FlatBuffers/VectorRef") {
serializedVector = StringRef(readerArena, writer.toStringRef());
}
ArenaObjectReader reader(readerArena, serializedVector, Unversioned());
reader.deserialize(FileIdentifierFor<decltype(outVec)>::value, vecArena, outVec);
reader.deserialize(FileIdentifierFor<decltype(outVec)>::value, outVec, vecArena);
}
ASSERT(src.size() == outVec.size());
for (int i = 0; i < src.size(); ++i) {