From e67f85b5fefeecd68cdaa908f3c1960d8aa14014 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 5 Nov 2026 14:37:53 +0100 Subject: [PATCH] seatlist: one test of the changed event heard before the seat answered, not two (issue 1966) Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i --- go/seatlist/seatlist_test.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/go/seatlist/seatlist_test.go b/go/seatlist/seatlist_test.go index c01ecc4..d1eca62 100644 --- a/go/seatlist/seatlist_test.go +++ b/go/seatlist/seatlist_test.go @@ -226,26 +226,6 @@ func TestTheTwoToolsReadTheHeldListAndReadItAgainForTheirCallers(t *testing.T) { } } -// A reader started while the seat was silent reads the whole list at the first event the seat sends, and then acts on any module. -func TestAReaderStartedWhileTheSeatWasSilentReadsTheWholeListAtItsFirstEvent(t *testing.T) { - owner := &fakeOwner{down: true, table: map[string]string{"node-b": def("node-b", "node", "put"), "node-c": def("node-c", "node", "put")}} - r, err := Start(Config{Bus: owner, Bootstrap: Bootstrapped()}) - if err != nil { - t.Fatal(err) - } - <-r.Ready() - if r.Status().Heard || r.MayAct("node-b") { - t.Fatal("the silent seat was heard") - } - owner.down = false - if err := owner.say(ChangedEvent, "node-b", SourceTrunk); err != nil { - t.Fatal(err) - } - if !r.Status().Heard || !r.MayAct("node-b") || !r.Has("node-c") { - t.Fatalf("the event did not read the whole list: %+v", r.Status()) - } -} - // A reader started while the seat was silent is heard at the seat's changed event: the whole list is read then (ADR 0636 ยง1). func TestAReaderStartedWhileTheSeatWasSilentIsHeardAtItsChangedEvent(t *testing.T) { owner := &fakeOwner{down: true}