Skip to content

Commit eda618f

Browse files
committed
test(s024): red: the signer alarm is not cleared when a signer signs again
Alarm's doc says clear/0 runs once a signer signs again; nothing calls it. The fips leg's receipts test met an alarm an earlier test left set (run 35606884798). Signed-off-by: Ayla Croft <aylacroft@proton.me>
1 parent 732238c commit eda618f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎test/trinity/receipts/chain_writer_test.exs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ defmodule Trinity.Receipts.ChainWriterTest do
130130
assert {:ok, %Receipt{kind: "query"}} = Receipts.append(scope, query(3))
131131
File.write!(path, bytes)
132132
assert {:ok, _} = Receipts.append(scope, decision(4))
133+
# "Clears the alarm once a signer signs again" (Alarm's own doc): the signed append above
134+
# is that signing. Red at slice 032: nothing cleared it, and the fips leg's receipts test
135+
# met an alarm an earlier test had left set (run 35606884798).
136+
refute Alarm.set?()
133137
end
134138

135139
describe "AC9: query checkpoints" do

0 commit comments

Comments
 (0)