diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 11:07:37 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 11:07:37 +0200 |
| commit | 298d76ad4b5841f3b2482fd8f3b320af7f7b915a (patch) | |
| tree | 16255025141bfae91658ee435f5fc8f27f4342e4 /tests | |
| parent | 8a86e09e8ff40cf45e948562324a47378751690f (diff) | |
Store repeat timestamp
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/run.lua | 5 |
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 |
