Fix M10 test session window format
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (ecs) (push) Successful in 1m46s
Foundation / checks (network) (push) Successful in 9m39s
Foundation / checks (client) (push) Successful in 12m17s
Foundation / checks (tsan) (push) Successful in 7m54s
Foundation / checks (checks) (push) Successful in 32m7s
Foundation / checks (postgres) (push) Successful in 44m29s
Foundation / postgres-tools (push) Successful in 20s
Foundation / image (push) Successful in 2m18s
Foundation / server-image (push) Failing after 22m40s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (ecs) (push) Successful in 1m46s
Foundation / checks (network) (push) Successful in 9m39s
Foundation / checks (client) (push) Successful in 12m17s
Foundation / checks (tsan) (push) Successful in 7m54s
Foundation / checks (checks) (push) Successful in 32m7s
Foundation / checks (postgres) (push) Successful in 44m29s
Foundation / postgres-tools (push) Successful in 20s
Foundation / image (push) Successful in 2m18s
Foundation / server-image (push) Failing after 22m40s
This commit is contained in:
@@ -15,7 +15,7 @@ namespace evo::server {
|
||||
class SessionWindow {
|
||||
public:
|
||||
enum class Error : std::uint8_t { malformed, expired, too_long };
|
||||
static constexpr std::uint64_t max_duration_seconds = 30 * 60;
|
||||
static constexpr std::uint64_t max_duration_seconds = std::uint64_t{30} * 60;
|
||||
|
||||
static std::expected<SessionWindow, Error> open(std::string_view specification,
|
||||
std::uint64_t now_seconds) {
|
||||
|
||||
@@ -96,11 +96,17 @@ struct Setup {
|
||||
(region.root / "server.pem").string(), "--m10-key",
|
||||
(region.root / "server.key").string(), "--m10-issuer",
|
||||
(region.root / "issuer.pub").string(), "--m10-environment", "dev", "--session-window",
|
||||
"test-" + std::to_string(static_cast<std::uint64_t>(
|
||||
std::chrono::duration_cast<std::chrono::seconds>(
|
||||
std::chrono::system_clock::now().time_since_epoch())
|
||||
.count()) +
|
||||
1200)});
|
||||
"test-" +
|
||||
std::to_string(static_cast<std::uint64_t>(
|
||||
std::chrono::duration_cast<std::chrono::seconds>(
|
||||
std::chrono::system_clock::now().time_since_epoch())
|
||||
.count())) +
|
||||
":" +
|
||||
std::to_string(static_cast<std::uint64_t>(
|
||||
std::chrono::duration_cast<std::chrono::seconds>(
|
||||
std::chrono::system_clock::now().time_since_epoch())
|
||||
.count()) +
|
||||
1200)});
|
||||
}
|
||||
[[nodiscard]] WireGrant grant(const AccountId& who, std::uint64_t serial) const {
|
||||
GrantClaims c;
|
||||
|
||||
Reference in New Issue
Block a user