]> git.giacomolli.uk - onechat/blobdiff - whatsapp_send_test.go
Add local context to chat operation failures
[onechat] / whatsapp_send_test.go
index df82e3cb3f483e967e6ebfff2cc0a32b6866a1b4..977d06b08056a46510ed7c7bdd969bdc0e20b415 100644 (file)
@@ -190,7 +190,7 @@ func TestWhatsAppSendRefuses(t *testing.T) {
        for _, tc := range testCases {
                t.Run(tc.name, func(t *testing.T) {
                        _, err := whatsapp.Send(t.Context(), tc.id, tc.chat, tc.text, "")
-                       require.EqualError(t, err, tc.err)
+                       require.EqualError(t, err, "check WhatsApp send: "+tc.err)
                })
        }