try using bg context on constructor.
This commit is contained in:
parent
71a7270c98
commit
098eb6bfff
@ -245,8 +245,7 @@ func (n *Ensemble) Miner(miner *TestMiner, full *TestFullNode, opts ...NodeOpt)
|
|||||||
|
|
||||||
// Start starts all enrolled nodes.
|
// Start starts all enrolled nodes.
|
||||||
func (n *Ensemble) Start() *Ensemble {
|
func (n *Ensemble) Start() *Ensemble {
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx := context.Background()
|
||||||
n.t.Cleanup(cancel)
|
|
||||||
|
|
||||||
var gtempl *genesis.Template
|
var gtempl *genesis.Template
|
||||||
if !n.bootstrapped {
|
if !n.bootstrapped {
|
||||||
|
Loading…
Reference in New Issue
Block a user