We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent701246a commitf7fa8e1Copy full SHA for f7fa8e1
scaletest/smtpmock/server.go
@@ -77,7 +77,7 @@ func (s *Server) Start(ctx context.Context) error {
77
}
78
79
func (s*Server)Stop()error {
80
-varhttpErr,listenerErr,smtpErrerror
+varhttpErr,smtpErrerror
81
82
ifs.httpServer!=nil {
83
shutdownCtx,cancel:=context.WithTimeout(context.Background(),5*time.Second)
@@ -87,19 +87,13 @@ func (s *Server) Stop() error {
87
88
89
90
-ifs.listener!=nil {
91
-iferr:=s.listener.Close();err!=nil {
92
-listenerErr=xerrors.Errorf("close listener: %w",err)
93
-}
94
95
-
96
ifs.smtpServer!=nil {
97
iferr:=s.smtpServer.Stop();err!=nil {
98
smtpErr=xerrors.Errorf("stop SMTP server: %w",err)
99
100
101
102
-returnerrors.Join(httpErr,listenerErr,smtpErr)
+returnerrors.Join(httpErr,smtpErr)
103
104
105
func (s*Server)SMTPAddress()string {