This commit is contained in:
Andrew Nester 2024-12-16 13:36:44 +01:00
parent b6af5b44df
commit cecc5695cd
No known key found for this signature in database
GPG Key ID: 12BC628A44B7DA57
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ func (ta *testAppRunner) run(t *testing.T) {
func setupBundle(t *testing.T) (context.Context, *bundle.Bundle, *mocks.MockWorkspaceClient) {
root := t.TempDir()
err := os.MkdirAll(filepath.Join(root, "my_app"), 0700)
err := os.MkdirAll(filepath.Join(root, "my_app"), 0o700)
require.NoError(t, err)
b := &bundle.Bundle{

View File

@ -123,7 +123,7 @@ func runResourceWithStderr(t testutil.TestingT, ctx context.Context, path string
ctx = env.Set(ctx, "BUNDLE_ROOT", path)
ctx = cmdio.NewContext(ctx, cmdio.Default())
c := internal.NewCobraTestRunnerWithContext(t, ctx, "bundle", "run", key)
c := testcli.NewRunnerWithContext(t, ctx, "bundle", "run", key)
stdout, stderr, err := c.Run()
return stdout.String(), stderr.String(), err
}