set token properly in test

This commit is contained in:
Markus Pilman 2022-07-07 12:00:32 -06:00
parent 5a880fd15e
commit a2ef5dc72a
2 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,7 @@ struct TenantInfo {
} }
if (token.present()) { if (token.present()) {
arena.dependsOn(token.get().arena()); arena.dependsOn(token.get().arena());
this->token = token.get();
} }
} }
}; };

View File

@ -75,6 +75,7 @@ struct CycleWorkload : TestWorkload, CycleMembers<MultiTenancy> {
this->token.issuedAtUnixTime = currentTime; this->token.issuedAtUnixTime = currentTime;
this->token.expiresAtUnixTime = currentTime + uint64_t(std::lround(getCheckTimeout())) + uint64_t(100); this->token.expiresAtUnixTime = currentTime + uint64_t(std::lround(getCheckTimeout())) + uint64_t(100);
this->token.keyId = k->first; this->token.keyId = k->first;
this->token.notBeforeUnixTime = currentTime - 10;
VectorRef<StringRef> tenants; VectorRef<StringRef> tenants;
tenants.push_back_deep(this->arena, this->tenant); tenants.push_back_deep(this->arena, this->tenant);
this->token.tenants = tenants; this->token.tenants = tenants;