From 78a44239e94d137503a84f6394e8b36e27390a40 Mon Sep 17 00:00:00 2001 From: Jakub Al-Khalili Date: Thu, 17 Oct 2019 13:49:59 +0200 Subject: [PATCH] Add sleep in smtp tests --- pkg/controller/jenkins/notifications/smtp_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/controller/jenkins/notifications/smtp_test.go b/pkg/controller/jenkins/notifications/smtp_test.go index a46c586a..61e2f750 100644 --- a/pkg/controller/jenkins/notifications/smtp_test.go +++ b/pkg/controller/jenkins/notifications/smtp_test.go @@ -138,6 +138,8 @@ func TestSMTP_Send(t *testing.T) { } }() + time.Sleep(time.Second * 5) + err = smtpClient.Send(smtpEvent, v1alpha2.Notification{ SMTP: &v1alpha2.SMTP{ Server: "localhost",