Skip to content

Commit bb67e96

Browse files
committed
Fix test
1 parent c09999a commit bb67e96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scaletest/notifications/run_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ func TestRunWithSMTP(t *testing.T) {
212212
smtpTrap := mClock.Trap().TickerFunc("smtp")
213213
defer smtpTrap.Close()
214214

215+
httpClient := &http.Client{}
216+
215217
// Start receiving runners who will receive notifications
216218
receivingRunners := make([]*notifications.Runner, 0, numReceivingUsers)
217219
for i := range numReceivingUsers {
@@ -229,6 +231,7 @@ func TestRunWithSMTP(t *testing.T) {
229231
ExpectedNotificationsIDs: expectedNotificationsIDs,
230232
SMTPApiURL: smtpAPIServer.URL,
231233
SMTPRequestTimeout: testutil.WaitLong,
234+
SMTPHttpClient: httpClient,
232235
}
233236
err := runnerCfg.Validate()
234237
require.NoError(t, err)

0 commit comments

Comments
 (0)