X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/0018014ab36f3de61a4b8a5515009dab803d6c38..2e2524881dfe8f6c5cabfd9d342d5d3492953bd4:/daemon_start_helper_test.go?ds=inline diff --git a/daemon_start_helper_test.go b/daemon_start_helper_test.go index b2c3787..baa527b 100644 --- a/daemon_start_helper_test.go +++ b/daemon_start_helper_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/require" ) -// daemonStartTestWithBot is daemonStartTest with bot, which can be nil. WhatsApp -// is not linked. +// daemonStartTestWithBot is daemonStartTest with bot, which can be nil. +// WhatsApp is not linked. func daemonStartTestWithBot(t *testing.T, server *ModelFake, bot *TelegramBot) string { t.Helper() @@ -42,7 +42,7 @@ func daemonStartTestWithWhatsApp(t *testing.T, server *ModelFake, bot *TelegramB done := make(chan error) go func() { done <- daemonServe(ctx, listener, bot, whatsapp, func(notify func(Event)) (*TurnLoop, error) { - return newTurnLoop(agent, memory, newTestSubagents(t), client, clock.Now, notify) + return newTurnLoop(agent, memory, newTestSubagents(t), whatsapp, client, clock.Now, notify) }) }()