1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-15 01:04:37 +02:00

Add size to info/manifest unit test.

This prevents the check from being order dependent.
This commit is contained in:
David Steele
2022-04-20 19:36:33 -04:00
parent d6f466be2b
commit d897bf1ec2

View File

@ -1864,7 +1864,7 @@ testRun(void)
TEST_TITLE("load validation errors");
TEST_ERROR(
manifestNewLoad(ioBufferReadNew(BUFSTRDEF("[target:file]\npg_data/bogus={}"))), FormatError,
manifestNewLoad(ioBufferReadNew(BUFSTRDEF("[target:file]\npg_data/bogus={\"size\":0}"))), FormatError,
"missing timestamp for file 'pg_data/bogus'");
TEST_ERROR(
manifestNewLoad(ioBufferReadNew(BUFSTRDEF("[target:file]\npg_data/bogus={\"timestamp\":0}"))), FormatError,