try using bg context on constructor.

This commit is contained in:
Raúl Kripalani 2021-06-22 16:35:58 +01:00
parent 71a7270c98
commit 098eb6bfff

View File

@ -245,8 +245,7 @@ func (n *Ensemble) Miner(miner *TestMiner, full *TestFullNode, opts ...NodeOpt)
// Start starts all enrolled nodes.
func (n *Ensemble) Start() *Ensemble {
ctx, cancel := context.WithCancel(context.Background())
n.t.Cleanup(cancel)
ctx := context.Background()
var gtempl *genesis.Template
if !n.bootstrapped {