Correct session window boundary test
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 1m47s
Foundation / checks (checks) (push) Failing after 3m22s
Foundation / checks (postgres) (push) Failing after 3m11s
Foundation / checks (tsan) (push) Successful in 7m36s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 1m47s
Foundation / checks (checks) (push) Failing after 3m22s
Foundation / checks (postgres) (push) Failing after 3m11s
Foundation / checks (tsan) (push) Successful in 7m36s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
This commit is contained in:
@@ -7,7 +7,7 @@ using evo::server::SessionWindow;
|
||||
int main() {
|
||||
constexpr std::uint64_t now = 1'000;
|
||||
|
||||
const auto opened = SessionWindow::open("dev-42:1200", now);
|
||||
auto opened = SessionWindow::open("dev-42:1200", now);
|
||||
assert(opened.has_value());
|
||||
assert(opened->activation_id() == "dev-42");
|
||||
assert(opened->deadline_seconds() == 1200);
|
||||
@@ -16,7 +16,7 @@ int main() {
|
||||
assert(opened->closed());
|
||||
|
||||
// A restart re-reads the same absolute deadline; it does not get a new duration.
|
||||
const auto restarted = SessionWindow::open("dev-42:1200", 1'100);
|
||||
auto restarted = SessionWindow::open("dev-42:1200", 1'100);
|
||||
assert(restarted.has_value());
|
||||
assert(restarted->deadline_seconds() == 1200);
|
||||
assert(!SessionWindow::open("dev-42:1200", 1'200).has_value());
|
||||
@@ -32,7 +32,7 @@ int main() {
|
||||
assert(!SessionWindow::open(":1200", now).has_value());
|
||||
assert(!SessionWindow::open("dev space:1200", now).has_value());
|
||||
assert(!SessionWindow::open("dev-44:not-a-number", now).has_value());
|
||||
assert(!SessionWindow::open("dev-45:2001", now).has_value());
|
||||
assert(!SessionWindow::open("dev-45:3001", now).has_value());
|
||||
|
||||
auto close = SessionWindow::open("dev-46:1200", now);
|
||||
assert(close.has_value());
|
||||
|
||||
Reference in New Issue
Block a user