X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/a6a82d96b4906e9e1f09f45f69f48124f11ae1bb..087d725b5ab41ad34ffd24938482d45a8b99a080:/whatsapp_inbox_test.go?ds=sidebyside diff --git a/whatsapp_inbox_test.go b/whatsapp_inbox_test.go index 7e9d3a3..6264d19 100644 --- a/whatsapp_inbox_test.go +++ b/whatsapp_inbox_test.go @@ -17,7 +17,7 @@ func TestWhatsAppPrivateBatchStartsATurnWithAnEmptyReply(t *testing.T) { require.NoError(t, whatsapp.device.Contacts.PutContactName(t.Context(), whatsappTestAna, "Ana", "Ana Souza")) server := newModelFake(t) - server.reply = func(w http.ResponseWriter, call ModelFakeCall) { + server.reply = func(w http.ResponseWriter, _ ModelFakeCall) { modelWriteEvents(w, modelCompletedEvent([]any{modelMessageItem("")}, 100, 0, 5)) } @@ -56,7 +56,7 @@ func TestWhatsAppGroupTurns(t *testing.T) { }{ { name: "plain", - message: func(event *events.Message) { + message: func(_ *events.Message) { }, line: "12:00 Bruno Lima: Who brings the cake?", },