From 298d76ad4b5841f3b2482fd8f3b320af7f7b915a Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 11:07:37 +0200 Subject: Store repeat timestamp --- tests/run.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/run.lua b/tests/run.lua index d024c8d..76ac8bf 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -3860,8 +3860,8 @@ test("Repeated primary timeout is sampled from live policy", function() end, "requires a policy") end) -test("Positive repeat timeout reads the current clock", function() - local _, transitions = fresh_sequence_state() +test("Positive repeat timeout reads and stores the current clock", function() + local state, transitions = fresh_sequence_state() transitions:SetRepeatTimestamp(25.25) local host = MemoryHost.new({ configuration = { repeat_timeout_ms = 100 }, @@ -3875,6 +3875,7 @@ test("Positive repeat timeout reads the current clock", function() local decision, elapsed_ms = resolver:evaluate_timeout() same(nil, decision) same(100, elapsed_ms) + same(125.75, state.repeat_timestamp_ms) local reads = 0 for _, operation in ipairs(host:operations()) do if operation.operation == "read_time_ms" then -- cgit v1.2.3