diff --git a/pkg/optimizer/local.go b/pkg/optimizer/local.go index f9b2979ed..cc3023955 100644 --- a/pkg/optimizer/local.go +++ b/pkg/optimizer/local.go @@ -45,6 +45,10 @@ func (e *LocalProcessExecutor) Execute(configJson []byte) (*backtest.SummaryRepo return nil, err } + if err := tf.Close(); err != nil { + return nil, err + } + c := exec.Command(e.Bin, "backtest", "--config", tf.Name(), "--output", e.OutputDir, "--subdir") output, err := c.Output() if err != nil {