ethersphere / bee

Bee is a Swarm client implemented in Go. It’s the basic building block for the Swarm network: a private; decentralized; and self-sustaining network for permissionless publishing and access to your (application) data.
https://www.ethswarm.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 338 forks source link

refactor(postage): enable parallel test #4656

Open ersonp opened 5 months ago

ersonp commented 5 months ago

Checklist

Description

Enable parallel testing in pkg/postage by adding t.Parallel() to test functions, convert some code to helper functions to fix scope issues, use t.Cleanup() instead of defer in Parallel tests, and remove disable paralleltest on pkg/postage from .golangci.yml.

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

closes https://github.com/ethersphere/bee/issues/3831

Screenshots (if appropriate):