mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00
Fix tests and lint errors
This commit is contained in:
@@ -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:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user