From dbb5972732676d33e60dbc92faa8c34d3a5ea3b4 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 4 Nov 2016 09:43:21 +0800 Subject: [PATCH] update testing. Signed-off-by: Bo-Yi Wu --- plugin_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin_test.go b/plugin_test.go index cd12077..45ea800 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -63,11 +63,12 @@ func TestSendMessage(t *testing.T) { Branch: "master", Message: "update travis by drone plugin", Commit: "e7c4f0a63ceeb42a39ac7806f7b51f3f0d204fd2", + Email: "test@gmail.com", }, Config: Config{ Token: os.Getenv("TELEGRAM_TOKEN"), - To: []string{os.Getenv("TELEGRAM_TO"), "中文ID", "1234567890"}, + To: []string{os.Getenv("TELEGRAM_TO"), os.Getenv("TELEGRAM_TO") + ",appleboy@gmail.com", "中文ID", "1234567890"}, Message: []string{"Test Telegram Chat Bot From Travis or Local", "commit message: 『{{ build.message }}』", " "}, Photo: []string{"tests/github.png", "1234", " "}, Document: []string{"tests/gophercolor.png", "1234", " "},