We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dbfc2b commit 3234143Copy full SHA for 3234143
agent/agentscripts/agentscripts_test.go
@@ -10,6 +10,7 @@ import (
10
"github.com/google/uuid"
11
"github.com/prometheus/client_golang/prometheus"
12
"github.com/spf13/afero"
13
+ "github.com/stretchr/testify/assert"
14
"github.com/stretchr/testify/require"
15
"go.uber.org/goleak"
16
@@ -75,9 +76,13 @@ func TestEnv(t *testing.T) {
75
76
77
ctx := testutil.Context(t, testutil.WaitLong)
78
- require.NoError(t, runner.Execute(ctx, func(script codersdk.WorkspaceAgentScript) bool {
79
- return true
80
- }))
+ testutil.Go(t, func() {
+ err := runner.Execute(ctx, func(script codersdk.WorkspaceAgentScript) bool {
81
+ return true
82
+ })
83
+ assert.NoError(t, err)
84
85
+
86
var log []agentsdk.Log
87
for {
88
select {
0 commit comments