[#382] evacuate: Fix unit tests
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Build / Build Components (1.19) (pull_request) Successful in 4m0s
Tests and linters / Lint (pull_request) Successful in 3m0s
Tests and linters / Tests (1.19) (pull_request) Successful in 5m26s
Tests and linters / Tests (1.20) (pull_request) Successful in 5m51s
Build / Build Components (1.20) (pull_request) Successful in 10m55s
Tests and linters / Staticcheck (pull_request) Successful in 5m53s
Tests and linters / Tests with -race (pull_request) Successful in 8m19s
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Build / Build Components (1.19) (pull_request) Successful in 4m0s
Tests and linters / Lint (pull_request) Successful in 3m0s
Tests and linters / Tests (1.19) (pull_request) Successful in 5m26s
Tests and linters / Tests (1.20) (pull_request) Successful in 5m51s
Build / Build Components (1.20) (pull_request) Successful in 10m55s
Tests and linters / Staticcheck (pull_request) Successful in 5m53s
Tests and linters / Tests with -race (pull_request) Successful in 8m19s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
11027945d8
commit
05e46b9ec1
2 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,7 @@ import (
|
|||
func newEngineEvacuate(t *testing.T, shardNum int, objPerShard int) (*StorageEngine, []*shard.ID, []*objectSDK.Object) {
|
||||
dir := t.TempDir()
|
||||
|
||||
te := testNewEngine(t, WithShardPoolSize(1)).
|
||||
te := testNewEngine(t).
|
||||
setShardsNumOpts(t, shardNum, func(id int) []shard.Option {
|
||||
return []shard.Option{
|
||||
shard.WithLogger(&logger.Logger{Logger: zaptest.NewLogger(t)}),
|
||||
|
|
|
@ -154,6 +154,7 @@ func (e *StorageEngine) putToShard(ctx context.Context, sh hashedShard, ind int,
|
|||
|
||||
putSuccess = true
|
||||
}); err != nil {
|
||||
e.log.Warn(logs.EngineCouldNotPutObjectToShard, zap.Error(err))
|
||||
close(exitCh)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue