Add sleep in smtp tests

This commit is contained in:
Jakub Al-Khalili 2019-10-17 13:49:59 +02:00
parent a5f4c78346
commit 78a44239e9
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ func TestSMTP_Send(t *testing.T) {
} }
}() }()
time.Sleep(time.Second * 5)
err = smtpClient.Send(smtpEvent, v1alpha2.Notification{ err = smtpClient.Send(smtpEvent, v1alpha2.Notification{
SMTP: &v1alpha2.SMTP{ SMTP: &v1alpha2.SMTP{
Server: "localhost", Server: "localhost",