chore(agent/agentexec): fix flake in agent/agentexec test (#15681)

Should hopefully fix https://github.com/coder/internal/issues/233
This commit is contained in:
Cian Johnston
2024-11-28 14:28:10 +00:00
committed by GitHub
parent a16f877c5b
commit 74f7961018
2 changed files with 6 additions and 11 deletions
+1 -6
View File
@@ -22,12 +22,9 @@ import (
"github.com/coder/coder/v2/testutil"
)
//nolint:paralleltest // This test is sensitive to environment variables
func TestCLI(t *testing.T) {
t.Parallel()
t.Run("OK", func(t *testing.T) {
t.Parallel()
ctx := testutil.Context(t, testutil.WaitMedium)
cmd, path := cmd(ctx, t, 123, 12)
err := cmd.Start()
@@ -40,8 +37,6 @@ func TestCLI(t *testing.T) {
})
t.Run("Defaults", func(t *testing.T) {
t.Parallel()
ctx := testutil.Context(t, testutil.WaitMedium)
cmd, path := cmd(ctx, t, 0, 0)
err := cmd.Start()