mirror of
https://github.com/appleboy/drone-telegram.git
synced 2026-06-04 10:14:50 +08:00
feat(logs): show logs if send error. (#55)
* feat(logs): show logs if send error.
This commit is contained in:
+3
-3
@@ -88,17 +88,17 @@ func TestSendMessage(t *testing.T) {
|
||||
}
|
||||
|
||||
err := plugin.Exec()
|
||||
assert.Nil(t, err)
|
||||
assert.NotNil(t, err)
|
||||
|
||||
plugin.Config.Format = "markdown"
|
||||
plugin.Config.Message = []string{"Test escape under_score"}
|
||||
err = plugin.Exec()
|
||||
assert.Nil(t, err)
|
||||
assert.NotNil(t, err)
|
||||
|
||||
// disable message
|
||||
plugin.Config.Message = []string{}
|
||||
err = plugin.Exec()
|
||||
assert.Nil(t, err)
|
||||
assert.NotNil(t, err)
|
||||
}
|
||||
|
||||
func TestBotError(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user