Skip to content

Commit f53fc7e

Browse files
committed
ignore net.ErrClosed
Signed-off-by: sivchari <shibuuuu5@gmail.com>
1 parent 3fdd752 commit f53fc7e

File tree

1 file changed

+2
-2
lines changed
  • test/infrastructure/inmemory/pkg/server

1 file changed

+2
-2
lines changed

test/infrastructure/inmemory/pkg/server/mux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ func (m *WorkloadClustersMux) DeleteWorkloadClusterListener(wclName string) erro
612612
}
613613

614614
if wcl.listener != nil {
615-
if err := wcl.listener.Close(); err != nil {
615+
if err := wcl.listener.Close(); !errors.Is(err, net.ErrClosed) {
616616
return errors.Wrapf(err, "failed to stop WorkloadClusterListener %s, %s", wclName, wcl.HostPort())
617617
}
618618
}
@@ -634,7 +634,7 @@ func (m *WorkloadClustersMux) Shutdown(ctx context.Context) error {
634634
}
635635

636636
// NOTE: this closes all the listeners
637-
if err := m.muxServer.Shutdown(ctx); err != nil {
637+
if err := m.muxServer.Shutdown(ctx); !errors.Is(err, net.ErrClosed) {
638638
return errors.Wrap(err, "failed to shutdown the mux server")
639639
}
640640

0 commit comments

Comments
 (0)