Skip to content

Commit 75843bb

Browse files
committed
test(storer): preallocate socChunks slice in reserve test
1 parent e4f05a9 commit 75843bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/storer/internal/reserve/reserve_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ func TestAdvancedReserveCornerCases(t *testing.T) {
22452245
stamp := postagetesting.MustNewFields(batch.ID, 0, 10)
22462246

22472247
// Generate 4 SOCs with different payloads and sort them by wrapped CAC address
2248-
var socChunks []swarm.Chunk
2248+
socChunks := make([]swarm.Chunk, 0, 100)
22492249
for i := range 100 {
22502250
c := soctesting.GenerateMockSocWithSigner(t, fmt.Appendf(nil, "payload %d", i), signer).Chunk().WithStamp(stamp)
22512251
socChunks = append(socChunks, c)

0 commit comments

Comments
 (0)