Skip to content

Commit 582380b

Browse files
authored
engine: fix flaky shard evacuate test (#3605)
Closes #3516.
2 parents 6308091 + 716e82e commit 582380b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Changelog for NeoFS Node
1616
- Metadata signatures submission (#3591)
1717
- Expired lock still locked the object (#3601)
1818
- Empty storage and error-free startup when changing layout parameters (#3594)
19+
- Flaky storage evacuation unit test (#3605)
1920

2021
### Changed
2122
- Stream payload without buffering to reduce memory usage in CLI `Get/Put` operations (#3535)

pkg/local_object_storage/engine/evacuate_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ func TestEvacuateNetwork(t *testing.T) {
167167
})
168168
t.Run("multiple shards, evacuate many", func(t *testing.T) {
169169
e, ids, objects := newEngineEvacuate(t, 4, 5)
170-
evacuateIDs := ids[0:3]
170+
evacuateIDs := ids[1:4]
171171

172172
var totalCount int
173-
for i := range evacuateIDs {
174-
res, err := e.shards[ids[i].String()].List()
173+
for _, id := range evacuateIDs {
174+
res, err := e.shards[id.String()].List()
175175
require.NoError(t, err)
176176

177177
totalCount += len(res)

0 commit comments

Comments
 (0)