summaryrefslogtreecommitdiff
path: root/tests/run.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run.lua')
-rw-r--r--tests/run.lua5
1 files changed, 3 insertions, 2 deletions
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