diff --git a/modules/nats/cmd/nats-tools/consumer_test.go b/modules/nats/cmd/nats-tools/consumer_test.go index 0b6b796e4..858efd80c 100644 --- a/modules/nats/cmd/nats-tools/consumer_test.go +++ b/modules/nats/cmd/nats-tools/consumer_test.go @@ -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