X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/6e3e9c5c10f3d35bae7e9846334974a09418aef7..2a276c273c21a1752d541bf87e074c5d1c27e30f:/chain_test.go diff --git a/chain_test.go b/chain_test.go index 070a5f2..e329c27 100644 --- a/chain_test.go +++ b/chain_test.go @@ -26,7 +26,7 @@ func TestChainReturnsTheRepliesOfTheFinalAnswer(t *testing.T) { }, 120, 100, 5)) } - memory, err := openMemory(t.Context(), t.TempDir(), newTestClock().Now, newFakeSummarizer()) + memory, err := openMemory(t.Context(), t.TempDir(), newTestClock().Now, newFakeSummarizer(), discardLog()) require.NoError(t, err) t.Cleanup(func() { @@ -56,6 +56,7 @@ func TestChainReturnsTheRepliesOfTheFinalAnswer(t *testing.T) { require.Equal(t, 2, server.Calls()) var kinds []string + for id := range memory.Len() { message, err := memory.Message(id) require.NoError(t, err)