Skip to content

feat(agent): add script data dir for binaries and files #12205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Feb 20, 2024
Prev Previous commit
execute async to ensure log processing
  • Loading branch information
mafredri committed Feb 20, 2024
commit 32341430c991e3b3e8a2b5d76dbd1f28a46a06a6
11 changes: 8 additions & 3 deletions agent/agentscripts/agentscripts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/google/uuid"
"github.com/prometheus/client_golang/prometheus"
"github.com/spf13/afero"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/goleak"

Expand Down Expand Up @@ -75,9 +76,13 @@ func TestEnv(t *testing.T) {

ctx := testutil.Context(t, testutil.WaitLong)

require.NoError(t, runner.Execute(ctx, func(script codersdk.WorkspaceAgentScript) bool {
return true
}))
testutil.Go(t, func() {
err := runner.Execute(ctx, func(script codersdk.WorkspaceAgentScript) bool {
return true
})
assert.NoError(t, err)
})

var log []agentsdk.Log
for {
select {
Expand Down