Skip to content

Commit

Permalink
Fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
MDrakos committed Sep 24, 2024
1 parent 0f4e5e7 commit fac08a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/scriptrun/test/integration/scriptrun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/ActiveState/cli/internal/testhelpers/osutil"
"github.com/ActiveState/cli/internal/testhelpers/outputhelper"
"github.com/ActiveState/cli/pkg/platform/authentication"
"github.com/ActiveState/cli/pkg/platform/model"
"github.com/ActiveState/cli/pkg/project"
"github.com/ActiveState/cli/pkg/projectfile"
)
Expand Down Expand Up @@ -119,7 +120,7 @@ func (suite *ScriptRunSuite) TestEnvIsSet() {
cfg.Set(constants.AsyncRuntimeConfig, true)

out := capturer.CaptureOutput(func() {
scriptRun := scriptrun.New(primer.New(auth, outputhelper.NewCatcher(), subshell.New(cfg), proj, cfg, blackhole.New()))
scriptRun := scriptrun.New(primer.New(auth, outputhelper.NewCatcher(), subshell.New(cfg), proj, cfg, blackhole.New(), model.NewSvcModel("")))
script, err := proj.ScriptByName("run")
require.NoError(t, err, "Error: "+errs.JoinMessage(err))
err = scriptRun.Run(script, nil)
Expand Down

0 comments on commit fac08a8

Please sign in to comment.