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 { select {
case <-ctx.Done(): 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: default:
} }
@@ -512,7 +512,7 @@ func (c *cluster) Barrier(ctx context.Context, name string) error {
select { select {
case <-ctx.Done(): 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: default:
} }

View File

@@ -703,7 +703,7 @@ func TestSynchronizeUpdate(t *testing.T) {
LimitMemory: 5, LimitMemory: 5,
Reference: "baz", Reference: "baz",
}, },
metadata: nil, metadata: map[string]interface{}{},
}, },
}, stack) }, stack)