}()
second, err := memory.AppendOnce("user", first.Text, saved, func(int) error {
- t.Fatal("a recorded message must not be prepared again")
+ require.FailNow(t, "a recorded message must not be prepared again")
return nil
})
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
_, err := memory.AppendOnce("user", "Other text.", &tc.id, func(int) error {
- t.Fatal("an invalid receipt must not be prepared")
+ require.FailNow(t, "an invalid receipt must not be prepared")
return nil
})