File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ func TestMailTool_sendMail(t *testing.T) {
4242 }
4343 for _ , tt := range tests {
4444
45+ if tt .Password == "" {
46+ t .Skip ("no passwd skip" )
47+ }
48+
4549 rsp , err := toolSet .(* emailToolSet ).sendMail (context .Background (), & sendMailRequest {
4650 Auth : Auth {
4751 Name : tt .Name ,
@@ -56,7 +60,7 @@ func TestMailTool_sendMail(t *testing.T) {
5660 },
5761 })
5862 if err != nil {
59- t .Skipf ( "Skipping test because passwd is not fill" )
63+ t .Errorf ( "send mail err: %v" , err )
6064 }
6165 t .Logf ("rsp: %+v" , rsp )
6266 }
@@ -168,7 +172,4 @@ func Test_emailToolSet_sendMailTool(t *testing.T) {
168172 decl := got .Declaration ()
169173 assert .Equal (t , "send_email" , decl .Name )
170174 assert .Equal (t , "send mail to other" , decl .Description )
171-
172- _ , err := got .Call (context .Background (), []byte ("{}" ))
173- assert .Error (t , err )
174175}
You can’t perform that action at this time.
0 commit comments