@@ -27,6 +27,7 @@ var noopEvictFn = func([]byte) error { return nil }
2727const defaultCapacity = 2 ^ 22
2828
2929func TestBatchStore_Get (t * testing.T ) {
30+ t .Parallel ()
3031 testBatch := postagetest .MustNewBatch ()
3132
3233 stateStore := mock .NewStateStore ()
@@ -42,6 +43,7 @@ func TestBatchStore_Get(t *testing.T) {
4243}
4344
4445func TestBatchStore_Iterate (t * testing.T ) {
46+ t .Parallel ()
4547 testBatch := postagetest .MustNewBatch ()
4648 key := batchstore .BatchKey (testBatch .ID )
4749
@@ -63,6 +65,7 @@ func TestBatchStore_Iterate(t *testing.T) {
6365}
6466
6567func TestBatchStore_IterateStopsEarly (t * testing.T ) {
68+ t .Parallel ()
6669 testBatch1 := postagetest .MustNewBatch ()
6770 key1 := batchstore .BatchKey (testBatch1 .ID )
6871
@@ -113,6 +116,7 @@ func TestBatchStore_IterateStopsEarly(t *testing.T) {
113116}
114117
115118func TestBatchStore_SaveAndUpdate (t * testing.T ) {
119+ t .Parallel ()
116120 testBatch := postagetest .MustNewBatch ()
117121 key := batchstore .BatchKey (testBatch .ID )
118122
@@ -157,6 +161,7 @@ func TestBatchStore_SaveAndUpdate(t *testing.T) {
157161}
158162
159163func TestBatchStore_GetChainState (t * testing.T ) {
164+ t .Parallel ()
160165 testChainState := postagetest .NewChainState ()
161166
162167 stateStore := mock .NewStateStore ()
@@ -171,6 +176,7 @@ func TestBatchStore_GetChainState(t *testing.T) {
171176}
172177
173178func TestBatchStore_PutChainState (t * testing.T ) {
179+ t .Parallel ()
174180 testChainState := postagetest .NewChainState ()
175181
176182 stateStore := mock .NewStateStore ()
@@ -183,6 +189,7 @@ func TestBatchStore_PutChainState(t *testing.T) {
183189}
184190
185191func TestBatchStore_Reset (t * testing.T ) {
192+ t .Parallel ()
186193 testChainState := postagetest .NewChainState ()
187194 testBatch := postagetest .MustNewBatch (
188195 postagetest .WithValue (15 ),
@@ -236,7 +243,7 @@ type testBatch struct {
236243// TestBatchSave adds batches to the batchstore, and after each batch, checks
237244// the reserve state radius.
238245func TestBatchSave (t * testing.T ) {
239-
246+ t . Parallel ()
240247 totalCapacity := batchstore .Exp2 (5 )
241248
242249 defaultDepth := uint8 (8 )
@@ -310,7 +317,7 @@ func TestBatchSave(t *testing.T) {
310317// TestBatchUpdate adds an initial group of batches to the batchstore and one by one
311318// updates their depth and value fields while checking the batchstore radius values.
312319func TestBatchUpdate (t * testing.T ) {
313-
320+ t . Parallel ()
314321 totalCapacity := batchstore .Exp2 (5 )
315322
316323 defaultDepth := uint8 (8 )
@@ -406,7 +413,7 @@ func TestBatchUpdate(t *testing.T) {
406413// TestPutChainState add a group of batches to the batchstore, and after updating the chainstate,
407414// checks the batchstore radius reflects the updates.
408415func TestPutChainState (t * testing.T ) {
409-
416+ t . Parallel ()
410417 totalCapacity := batchstore .Exp2 (5 )
411418
412419 defaultDepth := uint8 (8 )
@@ -481,6 +488,7 @@ func TestPutChainState(t *testing.T) {
481488}
482489
483490func TestBatchExpiry (t * testing.T ) {
491+ t .Parallel ()
484492 store := setupBatchStore (t , defaultCapacity )
485493
486494 batch := postagetest .MustNewBatch (
@@ -512,6 +520,7 @@ func TestBatchExpiry(t *testing.T) {
512520}
513521
514522func TestUnexpiredBatch (t * testing.T ) {
523+ t .Parallel ()
515524 store := setupBatchStore (t , defaultCapacity )
516525
517526 batch := postagetest .MustNewBatch (
@@ -571,7 +580,6 @@ func setupBatchStore(t *testing.T, capacity int) postage.Storer {
571580}
572581
573582func checkState (t * testing.T , name string , store postage.Storer , radius uint8 ) {
574-
575583 t .Helper ()
576584
577585 if radius != store .Radius () {
@@ -580,7 +588,6 @@ func checkState(t *testing.T, name string, store postage.Storer, radius uint8) {
580588}
581589
582590func addBatch (t * testing.T , s postage.Storer , depth uint8 , value int ) * postage.Batch {
583-
584591 t .Helper ()
585592
586593 batch := postagetest .MustNewBatch (
0 commit comments