mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
GODT-1143 Turn off SMTP server while no connection
This commit is contained in:
@ -60,7 +60,7 @@ func (ctx *TestContext) withSMTPServer() {
|
||||
useSSL := ctx.settings.GetBool(settings.SMTPSSLKey)
|
||||
|
||||
backend := smtp.NewSMTPBackend(ph, ctx.listener, ctx.settings, ctx.bridge)
|
||||
server := smtp.NewSMTPServer(true, port, useSSL, tls, backend, ctx.listener)
|
||||
server := smtp.NewSMTPServer(ph, true, port, useSSL, tls, backend, ctx.listener)
|
||||
|
||||
go server.ListenAndServe()
|
||||
require.NoError(ctx.t, waitForPort(port, 5*time.Second))
|
||||
|
||||
Reference in New Issue
Block a user