Fix tests and lint errors

This commit is contained in:
Ingo Oppermann
2023-06-29 21:58:30 +02:00
parent 6e156d0f3a
commit d66bd61746
2 changed files with 3 additions and 3 deletions

View File

@@ -402,7 +402,7 @@ func (c *cluster) setup(ctx context.Context) error {
select {
case <-ctx.Done():
return fmt.Errorf("starting cluster has been aborted: %w: %w", ctx.Err(), err)
return fmt.Errorf("starting cluster has been aborted: %w: %s", ctx.Err(), err.Error())
default:
}
@@ -512,7 +512,7 @@ func (c *cluster) Barrier(ctx context.Context, name string) error {
select {
case <-ctx.Done():
return fmt.Errorf("barrier %s: starting cluster has been aborted: %w: %w", name, ctx.Err(), err)
return fmt.Errorf("barrier %s: starting cluster has been aborted: %w: %s", name, ctx.Err(), err.Error())
default:
}