Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7fa8e1

Browse files
committed
Fix test
1 parent701246a commitf7fa8e1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

‎scaletest/smtpmock/server.go‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (s *Server) Start(ctx context.Context) error {
7777
}
7878

7979
func (s*Server)Stop()error {
80-
varhttpErr,listenerErr,smtpErrerror
80+
varhttpErr,smtpErrerror
8181

8282
ifs.httpServer!=nil {
8383
shutdownCtx,cancel:=context.WithTimeout(context.Background(),5*time.Second)
@@ -87,19 +87,13 @@ func (s *Server) Stop() error {
8787
}
8888
}
8989

90-
ifs.listener!=nil {
91-
iferr:=s.listener.Close();err!=nil {
92-
listenerErr=xerrors.Errorf("close listener: %w",err)
93-
}
94-
}
95-
9690
ifs.smtpServer!=nil {
9791
iferr:=s.smtpServer.Stop();err!=nil {
9892
smtpErr=xerrors.Errorf("stop SMTP server: %w",err)
9993
}
10094
}
10195

102-
returnerrors.Join(httpErr,listenerErr,smtpErr)
96+
returnerrors.Join(httpErr,smtpErr)
10397
}
10498

10599
func (s*Server)SMTPAddress()string {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp