Fix flaky TestBuilder_StartSmeshingCoinbase
Closes
The test was flaky because explicitly canceling the builder's context stopped it. The subsequent `StartSmeshing()` could then actually restart it.
@@ -286,10 +286,7 @@ func TestBuilder_waitForFirstATX(t *testing.T) {
}
func TestBuilder_StartSmeshingCoinbase(t *testing.T) {
- ctx, cancel := context.WithCancel(context.Background())
- // cancel the parent context, so it doesn't run the building loop
- cancel()
- tab := newTestBuilder(t, WithContext(ctx))
+ tab := newTestBuilder(t)
coinbase := types.Address{1, 1, 1}
postSetupOpts := PostSetupOpts{}
