diff --git a/test/txsim/run.go b/test/txsim/run.go index d25f471f0d..c20bad99f0 100644 --- a/test/txsim/run.go +++ b/test/txsim/run.go @@ -101,10 +101,17 @@ func Run( log.Info().Err(err).Msg("sequence terminated") continue } + if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) { + continue + } log.Error().Err(err).Msg("sequence failed") finalErr = err } + if ctx.Err() != nil { + return ctx.Err() + } + return finalErr }