The bus module reads a consumer's counts and a stream's events, so a lost event can be traced #644

Merged
mesh-tools merged 5 commits from fix/1966-nats-consumer-read into main 2026-11-09 21:27:31 +00:00
Showing only changes of commit a4e5a8ffef - Show all commits
+3 -1
View File
@@ -106,7 +106,9 @@ func TestMessagesScanBackAcrossBlocksAndSayAnUnansweredRead(t *testing.T) {
func TestTheReadToolsAreServedAndRefuseBadArguments(t *testing.T) {
ts := readTools(func() ([]byte, error) { return []byte(consumerJsz), nil },
func(context.Context) (MsgGet, func(), error) { return fake(map[uint64]string{50: "a.b"}, nil), func() {}, nil })
func(context.Context) (MsgGet, func(), error) {
return fake(map[uint64]string{50: "a.b"}, nil), func() {}, nil
})
by := map[string]func(map[string]any) (any, error){}
for _, tl := range ts {
by[tl.Name] = tl.Run