Skip to content

Commit 6ef29bc

Browse files
committed
fix:remove tests
1 parent 773431f commit 6ef29bc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tool/email/sendmail_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)