We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed193ca + ca08ed1 commit 46bebd3Copy full SHA for 46bebd3
tapgarden/planter_test.go
@@ -591,6 +591,11 @@ func (t *mintingTestHarness) finalizeBatchAssertFrozen(
591
t.finalizeBatch(&wg, respChan, nil)
592
593
if noBatch {
594
+ // Wait for the FinalizeBatch goroutine to complete before
595
+ // returning. This prevents a race where the goroutine's
596
+ // stateReqs message could interleave with subsequent seedling
597
+ // requests, potentially corrupting batch state.
598
+ wg.Wait()
599
t.assertNoPendingBatch()
600
return nil
601
}
0 commit comments