X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/d50c22617aafed0d3d87bf4596e933b343a10b60..1379d7d0d0173416237ddf8ebe820743d2cecfa6:/daemon_test.go?ds=inline diff --git a/daemon_test.go b/daemon_test.go index e27c6ae..2dfe7f1 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -127,8 +127,8 @@ func daemonStartTestWithBot(t *testing.T, server *ModelFake, bot *TelegramBot) s ctx, cancel := context.WithCancel(t.Context()) done := make(chan error) go func() { - done <- daemonServe(ctx, listener, bot, func(notify func(Event)) (*loop, error) { - return newLoop(agent, memory, client, clock.Now, notify) + done <- daemonServe(ctx, listener, bot, func(notify func(Event)) (*TurnLoop, error) { + return newTurnLoop(agent, memory, client, clock.Now, notify) }) }()