Skip to content

Commit

Permalink
fix (testdirectory): stop failing on Run errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlambrt committed Nov 2, 2023
1 parent 9da8b2c commit a03d7c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testdirectory/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ func Start(t TestingT, opt ...Option) *Directory {
}
go func() {
err := d.s.Run(fmt.Sprintf("%s:%d", opts.withHost, opts.withPort), connOpts...)
require.NoError(err)
if err != nil {
d.logger.Error("Error during shutdown", "op", "testdirectory.Start", "err", err.Error())
}
}()

if v, ok := interface{}(t).(CleanupT); ok {
Expand Down

0 comments on commit a03d7c0

Please sign in to comment.