uplinkc: object test fix

require object creation time to be less than 60 seconds ago instead of less than or equal to 2

Change-Id: I3ec348e12ead1144524509092265b2b4d15109e3
This commit is contained in:
Bryan White 2020-01-02 14:54:51 +01:00 committed by Egon Elbre
parent 105a9a4848
commit 71ea2b0dc0

View File

@ -149,8 +149,8 @@ void handle_project(ProjectRef project) {
require(strcmp(object_paths[i], object_meta.path) == 0);
require(data_len == object_meta.size);
require(future_expiration_timestamp == object_meta.expires);
require((time(NULL) - object_meta.created) <= 2);
require((time(NULL) - object_meta.modified) <= 2);
require((time(NULL) - object_meta.created) < 60);
require((time(NULL) - object_meta.modified) < 60);
require(object_meta.checksum_bytes != NULL);
// TODO: checksum is an empty slice in go; is that expected?
// require(object_meta.checksum_length != 0);